a = int(input()) h = a // 100 m = a % 100 m = m*60//100 print(format(h+10, '02d') + ':' + format(m, '02d'))