V = int(input()) hr = int(V //100 + 10) mn = int(V / 60 % 60) print('%d:%0d' % (hr, mn))