a = int(input()) Time_h = 10 Time_m = 0 dt_h = a//100 dt_m = (a%100)*60/100 Time_h = int(Time_h + dt_h) Time_m = int(Time_m + dt_m) if len(str(Time_m)) == 1: print("".join([str(Time_h), ":", "0", str(Time_m)])) else: print("".join([str(Time_h), ":", str(Time_m)]))