#include<stdio.h> int main() { int a,b,c; for (a=1;a<7;a++) for(b=1;b<7;b++) for(c=1;c<7;c++) if(a+b+c==10 && a!=b!=c) printf("%d,%d,%d\n",a,b,c); }