A, B, C = gets.split.map(&:to_i) if 60*A - B == 0 then puts -1 else puts [(C*3600 / (60*A - B)).ceil, 0].max + 1 end