l=gets.to_i puts "#{'%02d' % (10+l/100)}:#{'%02d' % ((l%100)*0.6)}"