a = int(input()) print('{}:{}'.format(10 + a//100, str(int(60*(a%100)/100)).zfill(2)))