main()
{
{
int a;
int a1,a2,a3,a4;
scanf("%d",&a);
a4=a/1000;
a3=a/100%10;
a2=a/10%10;
a1=a%10;
printf("%d,%d,%d,%d",a4,a3,a2,a1);
}
<script src="http://ad.nease.net/nnselect.js"></script>