#include <iostream>

using namespace std;

int main() {
    char x;
    cin >> x;
    cout << int(x);
    return 0;
}