a=int(input()) h = 10 + a//100 m = int(a%100*0.6) print(f'{h:02d}:{m:02d}')