n,p=gets.split.map(&:to_i) mod=10**9+7 s=0 (1..nil).each do |i| break if n