
Write a program that takes a character as input and prints either 1, 0, or -1 according to the following rules.
1, if the character is an uppercase alphabet (A - Z)
0, if the character is a lowercase alphabet (a - z)
-1, if the character is not an alphabet
Constraints :
Input can be any character.
Input can be any character.
Input format :
The only line of input contains a single character.
Output format :
The only line of output prints eith1, 0 or -1(as applicable).
v
0
v is a lower case alphabet hence the output is 0.
V
1
V is an upper case alphabet hence the output is 1.
#
-1
# is a symbol and neither an upper case alphabet nor lower case alphabet; hence the output is -1.
Take an input of a character in a variable ch.
if ch ≥ A && ch ≤ Z , print 1
else if ch ≥ a && ch ≤ z , print 0
else print -1