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