A = int(input()) M = A*6 // 10 H = 10 + M//60 M %= 60 print(str(H) + ':' + '{:0=2}'.format(M))