require'prime' m=5000001 gets b=c=l=0 gets.split.map{|a|b|=1<b )while(y/=10)>0 } p z-2