a = int(input()) b = round(a / 100 * 60) print(str(10+b//60) + ":",end="") print(str(b%60).zfill(2))