#include<iostream> using namespace std; int main() { char a; int b; cin>>a; b=(int)a; cout<<b<<endl; return 0; }