# coding: utf-8 # Your code here! start = 10 #スタート時間(時) speed = 100 #速度 distance = int(input()) #距離 hours = distance // speed + start minutes = int(distance % speed /speed * 60) print('{0:02d}:{1:02d}'.format(hours, minutes))