from math import ceil a=int(input()) m=ceil(a/100*60) print("{0:02d}:{1:02d}".format(10+m//60,m%60))