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<iostream>
using namespace std;

int main(){
    long 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 "bits/stdc++.h"

using namespace std;

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

int main()
{
    solve();
    return 0;
}

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

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

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

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