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