#include<iostream>

int main()
{
    char ch;
    std::cin >> ch;
    std::cout << (int)ch;
    return 0;
}