#include <stdio.h>
int main()
{
int a,b,c,d,e;
FILE *in, *out;
in=fopen("input.txt", "r");
out=fopen("output.txt", "w");
fscanf(in,"%d %d %d",&a,&b,&c);
fscanf(in,"%d",&d);
e=c+d;
a=(e/60+b)/60+a;
b=(e/60+b)%60;
c=e%60;
if(a>=24) {
a=a-24;
}
fprintf(out,"%d %d %d\n",a,b,c);
fclose(in);
fclose(out);
return 0;
}
ÀÌ°Ô ¹«½¼ ¹®Á¦°¡ Àֱ淡 0Á¡Ã³¸®°¡ µÇÁÒ?
°á°ú Ãâ·Â ´Ù ÀߵǴµ¥ ´Ù 0Á¡Ã³¸®°¡ µÇ³×¿ä.
´Ù¸¥¹®Á¦µµ ±×·¸°í ´Ù 0Á¡Ã³¸®°¡µÇ³×¿ä.
Á¦°¡ ûÁֽÿ¡¼ ¿¹¼± ÇÕ°ÝÇÏ°í º»¼±³ª°¡¸é Àß ÀúÀåÇÏ°í 2~3¹®Á¦Ç®¾îµµ,
0Á¡Ã³¸®°¡µÇ¼ Å»¶ô됬¾ú°Åµç¿ä.
ºÎ¸ð´ÔÀÌ °ÀÇ 198000¿øÇØÁ̴ּµ¥
¶Ç ¶È°°Àº ½Ç¼ö·Î Å»¶ôÇÏ¸é ¾ÈµÉ°Í°°½À´Ï´Ù.
¿Ö 0Á¡Ã³¸®°¡ µÈ°ÍÀΰ¡¿ä?
ÀÌ°Í°ú °°ÀºÀÌÀ¯·Î º»¼±¿¡¼µµ ¶³¾îÁø°Ç°¡¿ä?
µµ´ëü ¿Ö 0Á¡ÀÌÁÒ?
±×¸®°í ¹®Á¦¿¡ ´Ü,1<n<1000ÀÌ·±½ÄÀ¸·Î µÇÀִ°ÍÀÌ Àִµ¥, Á¤¼öÁ¦ÇÑ ¾î¶»°Ô µÎ³ª¿ä?
À̰͵µ °¨Á¡¿äÀÎÀÌ µÇ³ª¿ä?
Àü ¾Ë°í¸®Áò »ý°¢¾ÈÇÏ°í ±×³É Á¦ ¹æ½Ä´ë·Î Ç®°Åµç¿ä.