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))
}

C++: #include <cstdio>
int main() {
    int N; scanf("%d", &N);
    if(65 <= N and N <= 90) puts("1");
    else if(97 <= N and N <= 122) puts("2");
    else puts("0");
}

C++: #include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for(int(i) = 0; (i) < (n); (i)++)
#define FOR(i, m, n) for(int(i) = (m); (i) < (n); (i)++)
#define All(v) (v).begin(), (v).end()
#define pb push_back
#define MP(a, b) make_pair((a), (b))
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int INF = 1 << 30;
const ll LINF = 1LL << 60;
const int MOD = 1e9 + 7;

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(void){
    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;


  
int main(){
  

  int N;
  cin >> N  ;
  if (N >= 65 && N <= 90){
    cout << "1\n";
  }else  if (N>=97 && N<=122){
  cout << "2\n"; }
  else {
    cout << "0\n";
  }
 return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    
    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 <cctype>
#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  if (isupper(N) != 0)
    cout << 1 << endl;
  else if (islower(N) != 0)
    cout << 2 << endl;
  else
    cout << 0 << endl;
}

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

//template
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define rrep(i,a,b) for(int i=(a);i>(b);i--)
#define ALL(v) (v).begin(),(v).end()
typedef long long int ll; typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<typename A,size_t N,typename T>void Fill(A(&array)[N],const T &val){fill((T*)array, (T*)(array+N), val);}
const int inf = INT_MAX / 2; const ll INF = LLONG_MAX / 2;
//template end



int main(){
    int n,ans=0; scanf("%d",&n);
    if(n>=65&&n<91)ans=1;
    if(n>=97&&n<123)ans=2;
    printf("%d\n",ans);
    return 0;
}

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

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

    return 0;
}

C++: #include<iostream>
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;
}

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

int main(){
    long int N,M;
    cin>>N;

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

    return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string>
#include<cmath>
#include<math.h>
#include<vector>
#include<algorithm>
#include<map>
#pragma warning(disable: 4996)
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;


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<cstdio>
#include<iostream>
#include<algorithm>
#include<utility>
#include<vector>
#include<queue>
#include<functional>
#include<map>
#include<set>
#include<cstring>
#include<string>
#include<stack>
#include<math.h>
#include<stdlib.h>
using namespace std;
#define int long long
typedef pair<int, int> pii;
typedef pair<int, pii > piii;
typedef pair<double, double> pdd;
typedef pair<int, char> pic;
typedef priority_queue<pii, vector<pii>, greater<pii> > RPQ;
#define mk make_pair
#define INF (1 << 30)
#define INFL (1ll << 60ll)
#define mod 1000000007

int N;

signed main(){  
    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;
}

/*

*/

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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 <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define repp(i,n,m) for (int i = m; i < (n); ++i)
#define repl(i,n) for (long long i = 0; i < (n); ++i)
#define reppl(i,n,m) for (int i = m; i < (n); ++i)
using namespace std;
using ll = long long;

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;
    }
}

C++: #include<iostream>
#include<vector>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int main() {
	long long n; cin >> n;
	if (n < 65) {
		cout << 0 << endl;
	}
	else if (n <= 90) {
		cout << 1 << endl;
	}
	else if (n < 97) {
		cout << 0 << endl;
	}
	else if (n <= 122) {
		cout << 2 << endl;
	}
	else {
		cout << 0 << endl;
	}
	cin >> n;
}

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

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