#K95522. Check for 'a' and 'z'
Check for 'a' and 'z'
Check for 'a' and 'z'
Given a non-empty string S
, determine whether it contains both of the lowercase letters a
and z
. If both characters are present, print Success
; otherwise, print Fail
. Your solution must read input from standard input (stdin) and write the result to standard output (stdout).
Note: The string may contain spaces and other characters, but only the presence of a
and z
determines the result.
inputFormat
The input consists of a single line containing the string S
.
outputFormat
Output a single line containing either Success
if S
contains both a
and z
, or Fail
otherwise.
amazing
Success