p (gets.split.map(&:to_i).inject (:*)) % 1000000007