a = int(input()) h = 10 m = 0 b = a*0.6 b = int(b) h += b//60 m += b % 60 print("{}:{}".format(h,str(m).zfill(2)))