Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		line := scanner.Text()
		n, _ := strconv.Atoi(line)
		var result int
		if 65 <= n && n <= 90 {
			result = 1
		} else if 97 <= n && n <= 122 {
			result = 2
		} else {
			result = 0
		}
		fmt.Printf("%v\n", result)
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;

if(N > 64 && N < 91){
cout << "1" << endl;
}
else if(N > 96 && N < 123){
cout << "2" << endl;
}
else{
cout << "0" << endl;
}
}

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

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

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    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 <algorithm>
#include <math.h>

using namespace std;

int main(void) {
	int N;

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

	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
    int number;
    cin >> number;
    char ch = number;
    if('A' <= ch && ch <= 'Z') cout << 1 << endl;
    else if('a' <= ch && ch <= 'z') 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"<<endl;}
else{
    if(N>=97&&N<=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;
}

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

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

C++: #include <bits/stdc++.h>

using namespace std;

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

C++: //PCK2019予選問題2
#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(void){
  int a;
  cin>>a;
  if(a>=65&&a<=90){
      cout<<"1"<<endl;
      return 0;
  }
   if(a>=97&&a<=122){
      cout<<"2"<<endl;
      return 0;
  }
  else{
      cout<<"0"<<endl; 
      return 0;
  }
}

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

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

C++: #include<algorithm>
#include<iostream>
#include<cstdio>
#include<cmath>
#include<string>
using namespace std;
int N=0;
int main(void){
	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;
int main(){
	int N;
	cin >> N;
	if (N<=90 and N>=65){
		cout << "1" << endl;
	}else if (N<=122 and N>=97){
		cout << "2" << endl;
	}else{
		cout << "0" << endl;
}
}

C++: #include <bits/stdc++.h>

typedef long long ll;
#define ALL(a) a, a+sizeof(a)/sizeof(a[0])
#define all(a) a.begin(),a.end()
#define MOD 1000000007
using namespace std;
ll gcd(ll n, ll m) {
	if (m == 0) return n;
	return gcd(m, n % m);
}
ll lcm(ll n, ll m) {return m / gcd(n, m) * n;}

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

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

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

int main() {

  int num;
  cin>>num;

  if (65 <= num && num <= 90) {
    cout<<"1"<<endl;
  } else if (97 <= num && num <= 122) {
    cout<<"2"<<endl;
  } else {
    cout<<"0"<<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;
    }
}

C++: #include <iostream>
//#include <iomanip>
//#include <string>
//#include <vector>
//#include <algorithm>
//#include <utility>
//#include <set>
//#include <map>
//#include <queue>
//#include <deque>
//#include <bitset>
//#include <math.h>
using namespace std ;
using ll = long long ;
//using ld = long double ;
//using vll = vector<ll> ;
//using vvll = vector<vll> ;
//using vc = vector<char> ;
//using vvc = vector<vc> ;
//using vb = vector<bool> ;
//using vvb = vector<vb> ;
//using pll = pair<ll,ll> ;

//ll mod = 1000000007 ;
//long double pie = acos(-1) ;

//void yorn(bool a){if(a) cout << "Yes" << endl ; else cout << "No" << endl ;}
//void YorN(bool a){if(a) cout << "YES" << endl ; else cout << "NO" << endl ;}
//ll gcd(long long a,long long b){if(b==0) return a ; return gcd(b,a%b) ;}
//ll lcm(long long a,long long b){return a/gcd(a,b)*b ;}
//ll sa(long long a,long long b){if(a>b) return a-b ; return b-a ;}
//void mysort(vector<long long> &a){sort(a.begin(),a.end()) ;}
//void myrev(vector<long long> &a){reverse(a.begin(),a.end()) ;}

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

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

C++: #include<iostream>
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<bits/stdc++.h>
#include<vector>
#include<deque>
#include<list>
#define rep(i,n) for(ll i=0;i<n;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define yesno(flg) if(flg){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}
#define MAX_N 1002
#define i197 1000000007

using namespace std;

typedef long long ll;
typedef pair<ll,ll> P1;
typedef pair<int,int> Pi;
typedef pair<double,Pi> Pdi;
typedef pair<ll,int>Pli;
typedef pair<P1,ll> P2;
const ll INF=10000000000000000001;
struct edge{int to,cost;};
struct pos{
	int x,y,cost;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};
struct Road{double cost;int a,b;};


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 <stdio.h>
typedef long long ll;
using namespace std;

int main(void) {
  ll n;
  scanf("%lld", &n);
  if(n >= 65 && n <= 90) printf("1\n");
  else if(n >= 97 && n <= 122) printf("2\n");
  else printf("0\n");
  return 0;
}