Walter White and His Crystals
All submissions for this problem are available.Walter White is trying to expand his area for selling his crystals. But Jesse tells him that the city whose name contains 'x' ( small letter 'x') is not safe to sell. Walter and Jesse appoint Shailesh to find if the area is safe, as they are busy cooking crystals. But Shailesh is not capable of doing this work, so he needs your help. You will be given a city name $S$, you have to tell whether it's safe or not. ###Input: - First line will contain $S$, the city name. ###Output: Print "Not Safe" if the city name has the letter 'x' in it. (without quotes). Print "Safe" otherwise. ###Constraints - $1 \leq len(S) \leq 100000$ ###Sample Input: Mumbai ###Sample Output: Safe ###Sample Input: Mexico ###Sample Output: Not Safe ###EXPLANATION: The city name "Mumbai" does not have the letter 'x' so it is "Safe" to sell. Mexico has the letter 'x' so it is "Not Safe" to sell.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions