// ³ª¸ÓÁö ¿¬»êÀÚ ÇÁ·Î±×·¥
#include <stdio.h>
#define SEC_PER_MINUTE 60 // 1ºÐÀº 60ÃÊ
#define SEC_PER_HOUR 3600
int main(void)
{
int input,hour, minute, second;
printf("ÃÊ´ÜÀ§ÀÇ ½Ã°£À» ÀÔ·ÂÇϽÿä:(32¾ïÃÊÀÌÇÏ) ");
scanf("%d", &input); // ÃÊ´ÜÀ§ÀÇ ½Ã°£À» Àд´Ù.
hour = input / SEC_PER_HOUR;
input = input - hour*3600;
minute = input / SEC_PER_MINUTE; // ¸î ºÐ
second = input % SEC_PER_MINUTE; // ¸î ÃÊ
printf("%dÃÊ´Â %d½Ã°£ %dºÐ %dÃÊÀÔ´Ï´Ù. n",input+hour*3600, hour, minute, second);
return 0;
}