dst=int(input()) time_minute=dst//10*6 print("{}:{:02}".format(10+int(time_minute//60),(time_minute%60)))