#include
void main()
{
int n;
scanf("%d",&n);
if(n/100000)
printf("应输入一个不多于5位数的正整数!\n");
else
printf("%d",n%10);
n/=10;
while(n)
printf(",%d",n%10);
}