V = int(input()) hr = V //100 + 10 mn = V % 100 * 0.6 print('%d:%02d' % (hr, mn))