A, B = $<.map &:to_f p B/A < 250 ? 1 : 2