N = int(input()) h = 10 + N//100 m = 0 + (N%100)*6//10 print('{:02}:{:02}'.format(h,m))