def ascan; gets.split.map(&:to_i); end def scan; gets.to_i; end n,m = ascan if n<=m p 1 else p -1 end