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