#include <stdio.h>
int hcount;
int mcount;
int scount;
int main(void)
{
printf("input the hours ");
scanf("%i", &hcount);
printf("input the minutes ");
scanf("%i", &mcount);
printf("input the seconds ");
scanf("%i", &scount);
for(;;)
{
sleep(1);
scount--;
if(scount<0) {
scount =59;
mcount--;
}
if(mcount<0){
mcount=59;
hcount--;
}
if(hcount==0 && mcount==0 && scount==0){
break;
}
printf("\n%i\n", scount);
printf("\n%i\n", mcount);
printf("\n%i\n", hcount);
}
return 0;
}