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