Problem:

アスキー文字

　

コンピュータの内部ではすべての情報が数値として扱われています。たとえば、アスキーコードでは、アルファベットの大文字Aに数値の65が割り当てられています。同様にアルファベットの大文字Bに66、Cに67というように、AからZには連続してそれぞれ65から90が割り当てられています。また、アスキーコードでは、アルファベットの小文字aに97が割り当てられています。同様にアルファベットの小文字bに98、cに99というように、aからzには連続してそれぞれ97から122が割り当てられています。

  与えられたアスキーコードの数値が、アルファベットの大文字と小文字のどちらを表すか判定するプログラムを作成せよ。

入力

  入力は以下の形式で与えられる。

$N$

  １行に数値$N$ ($0 \leq N \leq 127$)が与えられる。

出力

大文字なら「1」を、小文字なら「2」を、それ以外なら「0」を１行に出力する。

入出力例

入力例１

67

出力例１

1

入力例２

110

出力例２

2

入力例３

32

出力例３

0



Sample input:
67


Sample output:
1

Submission status: Accepted

Solution code:
n=int(input())
if 65<=n and n<=90:
    print(1)
elif 97<=n and n<=122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
digits = input()
uppercaseList = [str(i) for i in range(65,90+1)]
lowercaseList = [str(i) for i in range(97,122+1)]
if digits in uppercaseList:
    print('1')
elif digits in lowercaseList:
    print('2')
else:
    print('0')

Submission status: Accepted

Solution code:
N = int(input())
if 97<=N<=122:
    print(2)
elif 65<=N<=90:
    print(1)
else:
    print(0)

Submission status: Accepted

Solution code:
N = int(input())
if 65<=N<=90:
	print(1)
elif 97<=N<=122:
	print(2)
else:
	print(0)

Submission status: Accepted

Solution code:
N = int(input())
if 65 <= N and N <= 90:
  print(1)
elif 97 <= N and N <= 122:
  print(2)
else:
  print(0)

Submission status: Accepted

Solution code:
n=int(input())
if(n>=65 and n<=90):
    print("1")
elif(n>=97 and n<=122):
    print("2")
else:
    print("0")

Submission status: Accepted

Solution code:
n=int(input())
if 65 <= n <= 90:
    print(1)
elif 97 <= n <=122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
N = int(input())

if 65 <= N <= 90:
    print(1)
elif 97 <= N <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
n = int(input())
if 65 <= n <= 90 :
    print(1)
elif 97 <= n <= 122 :
    print(2)
else :
    print(0)

Submission status: Accepted

Solution code:
N = int(input())

if 65 <= N <=90:
    print(1)
elif 97<= N <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
if 65<=n<=90:
    ans = 1
elif 97<=n<=122:
    ans = 2

print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
N=int(input())

if 65<=N<=90:
    print('1')
elif 97<=N<=122:
    print('2')
else:
    print('0')

Submission status: Accepted

Solution code:
#標準入力
i = int(input())

#大文字なら1小文字なら2それ以外は0を出力する
if i >= 65 and i <= 90:print("1")
elif i >= 97 and i <= 122:print("2")
else:print("0")

Submission status: Accepted

Solution code:
n = int(input())
if 65 <= n <= 90: print(1)
elif 97 <= n <= 122: print(2)
else: print(0)

Submission status: Accepted

Solution code:
n=int(input())
if 65<=n and n<=90:print(1)
elif 97<=n and n<=122:print(2)
else:print(0)

Submission status: Accepted

Solution code:
n = int(input())
if n >= 65 and n <= 90:
    print("1")
elif n >= 97 and n <= 122:
    print("2")
else:
    print("0")

Submission status: Accepted

Solution code:

N = int(input())

if N >= 65 and N <= 90:
    print(1)
elif N >= 97 and N <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
a = int(input())
ans = 0
if a >= 65 and a <= 90:
    ans = 1
elif a >= 97 and a <= 122:
    ans = 2
print(ans)

Submission status: Accepted

Solution code:
num=int(input())
if 65<=num<=90:
    print(1)
elif 97<=num<=122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:

if __name__ == '__main__':

	n = int(input())

	if 65 <= n <= 90:
		print(1)
	elif 97 <= n <= 122:
		print(2)
	else:
		print(0)

Submission status: Accepted

Solution code:
n = int(input())
if 65<= n and n<=90:
    print(1)
elif 97<=n and n<=122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
N = int(input())
char = chr(N)
if char.isalpha():
    print(int(char.islower())+1)
else:
    print(0)

Submission status: Accepted

Solution code:
n = int(input())
if n >= 65 and n <= 90:
  print(1)
elif n >= 97 and n <= 122:
  print(2)
else:
  print(0)

Submission status: Accepted

Solution code:
N = int(input())
if 65<=N<=90:
    print(1)
elif 97<=N<=122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
i=int(input())
print(1 if 65<=i<=90 else 2 if 97<=i<=122 else 0)

Submission status: Accepted

Solution code:
n = int(input())
if 65 <= n and n <= 90:
    s = 1
elif 97 <= n and n <= 122:
    s = 2
else:
    s = 0
print(s)

Submission status: Accepted

Solution code:
n = int(input())
if n < 65 or (n > 90 and n < 97) or n > 122:
    print(0)
elif n <= 90:
    print(1)
else:
    print(2)

Submission status: Accepted

Solution code:
num = int(input())
if num >= 65 and num <= 90:
    print("1")
elif num >= 97 and num <= 122:
    print("2")
else:
    print("0")

Submission status: Accepted

Solution code:
N = int(input())

if 65 <= N <= 90:
    print(1)
    exit()

if 97 <= N <= 122:
    print(2)
    exit()

print(0)

Submission status: Accepted

Solution code:
n=int(input())
print(1 if n in range(65, 91) else 2 if n in range(97, 123) else 0)

Submission status: Accepted

Solution code:
n = int(input())
if 65 <= n <= 90:
    print(1)
elif 97 <= n <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
A = int(input())
if A > 64 and A < 91: print('1')
elif A > 96 and A < 123: print('2')
else: print('0')

Submission status: Accepted

Solution code:
N =int(input())
if N>=65 and N<=90:print(1)
elif N>=97 and N<=122:print(2)
else :print(0)

Submission status: Accepted

Solution code:
n = int(input())
if 65 <= n <= 90:
    print(1)
elif 97 <= n <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
a = int(input())

if 65 <= a <= 90:
    print(1)
elif 97 <= a <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
a = int(input())
if 65 <= a <= 90:
    print(1)
elif 97 <= a <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
s = int(input())

if s >= 65 and s <= 90:
    print(1)
elif s >= 97 and s <= 122:
    print(2)
else:
    print(0)

Submission status: Accepted

Solution code:
n=int(input())
if 64<n<91:print(1)
elif 96<n<123:print(2)
else:print(0)

Submission status: Accepted

Solution code:
n=int(input())
if 65<=n<=90:
    print(1)
elif 97<=n<=122:
    print(2)
else:
    print(0)