#include<bits/stdc++.h> using namespace std; int main() { char x; cin >> x; cout << (int) x; return 0; }