$\=NO;$o.=$_.$"x50for<>;i:for$i(@i=1..5e3*$o=~/#/){$t=$o;vec($t,$_,8)==35&&(vec($t,$_+$i,8)-=35)&&next i for@i;$\=YES}print