a, b, c = gets.chomp.split.map &:to_i if 60 * a - b > 0 p ( 3600.0 * c / ( 60 * a - b ) ).ceil else p -1 end