A = int(input()) b = A//10*6 print(f"{10+b//60:02}:{b%60:02}")