#include <stdio.h> int main () { int clock, time1; scanf("%d %d",&clock , &time1); int time2 = (clock %100) + ((clock/100)*60) + time1 ; int time3 = time2/60; int time4 = time2%60; printf("%d", time3*100+time4); return 0; }