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