Go: package main

import "fmt"

func alphabetical(b byte) int {
	if 65 <= b && b <= 90 {
		return 1
	}
	if 97 <= b && b <= 122 {
		return 2
	}
	return 0
}

func main() {
	var b byte
	fmt.Scanln(&b)
	fmt.Println(alphabetical(b))
}

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

Python: s = int(input())

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

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

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

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

Python: 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)

Python: N = int(input())

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

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

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

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

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

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

print(ans)

Python: a = int(input())

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

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

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

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

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

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

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

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

Python: #標準入力
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")

Python: 
if __name__ == '__main__':

	n = int(input())

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

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

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

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

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

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

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

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

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

Python: 
N = int(input())

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

Python: N = int(input())

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

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

print(0)

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

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

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

Python: N = int(input())

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

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

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

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

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

Python: 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')

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    if(n>=65 && n<=90){
        cout << 1 << endl;
    }
    else if(n>=97 && n<=122){
        cout << 2 << endl;
    }
    else{
        cout << 0  << endl;
    }
    return(0);
}

C++: #include<iostream>
using namespace std;
int main(){
	int N,ans;
	cin >> N;
	if (N >= 65 && N <= 90){
		ans = 1;
	}
	else if (N >= 97 && N <= 122){
		ans = 2;
	}
	else{
		ans = 0;
	}
	cout << ans << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;

int main(void){
    int c;
    cin >> c;
    if(65 <= c && c <= 90)cout << '1' << endl;
    else if(97 <= c && c <=122)cout << '2' << endl;
    else cout << '0' << endl;
}

C++: #include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <stack>
#include <iomanip>


using namespace std;

#define REP(i, n) for(ll i = 0;i < n;i++)
#define REPR(i, n) for(ll i = n;i >= 0;i--)
#define FOR(i, m, n) for(ll i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define REPO(i, n) for(ll i = 1;i <= n;i++)
#define ll long long
#define INF (ll)1 << 60
#define MINF (-1 * INF)
#define ALL(n) n.begin(),n.end()
#define MOD (ll)1000000007
#define P pair<ll, ll>

ll n;
int main() {
	cin >> n;
	if (n >= 65 and n <= 90)cout << 1 << endl;
	else if (n >= 97 and n <= 122)cout << 2 << endl;
	else cout << 0 << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;


int main(){
	int N;
	cin >> N;
	if(N >= 'A' && N <= 'Z'){
		cout << 1 << endl;
	}
	else if(N >= 'a' && N <= 'z'){
		cout << 2 << endl;
	}
	else{
		cout << 0 << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a, b,c;
    cin >> a;
    if(65 <=a && a<=90){
        cout << "1";
    }
    else if(97<=a && a<=122){
        cout << "2";
    }
    else{
        cout << "0";
    }
    cout << "\n";
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin>>N;

  if(N>=65&&N<=90){
    cout << 1 <<endl;
      }
  else if(N>=97&&N<=122){
    cout <<2 <<endl;
  }
  else cout << 0 <<endl;
}

C++: #include<iostream>
using namespace std;
#define inRange(x,a,b) (a <= x && x <= b)

int main(){
    int n;
    cin >> n;
    if(inRange(n, 65, 90))          cout << 1 << endl;
    else if(inRange(n, 97, 122))    cout << 2 << endl;
    else                            cout << 0 << endl;
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(){
	int n;	cin>>n;
	if(65<=n && n<=90)cout<<1<<endl;
	else if(97<=n && n<=122)cout<<2<<endl;
	else cout<<0<<endl;

	return 0;
}