a:stdin.get_s(2K).split(" ").to_a; a.each{|i|z:1;a.each{z+=it.to_i>i.to_i?1:0;};z.p;};