import math a=int(input()) n=60*(a/100) time1=math.ceil(10+n//60) time2=math.ceil(n%60) print(f'{time1:02}:{time2:02}')