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