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