$A[$i+1] * $X) { echo "NO\n"; exit; } } echo "YES\n";