a = int(input()) sur = a%100 hour = (a-sur)//100 hour = hour+10 min = int(60*sur/100) print('{0}:{1}'.format(hour,min))