A = gets.to_i t = Rational(A, 100) h = t.floor m = t - h puts "%02d:%02d" % [10 + h, 60 * m]