A, B, C = gets.split.map(&:to_i) if 60*A - B == 0 then puts -1 end cross = C*3600.0 / (60.0*A - B) if cross >= 0 then p cross.ceil + 1 else p -1 end