#A

#B

def solve(char):
    a = 'abcdefghijklmnopqrstuvwxyz'
    i = a.find(char.lower())

    ri= len(a) - 1 - i
    return a[ri]
s=input()
print(solve(s))

#C

#include <iostream>
#include <cmath>

using namespace std;

void solve(double a) {
    bool found = false;

    for (int x = 1; x <= 1000 && !found; x++) {
        for (int y = x; y <= 1000 && !found; y++) {
            double sum_xy = 1.0 / x + 1.0 / y;
            if (a > sum_xy) {
                double z = 1.0 / (a - sum_xy);
                if (z > 0 && z == floor(z) && z >= y && z <= 1000) {
                    cout << x << " " << y << " " << (int)z << endl;
                    found = true;
                    break;
                }
            }
        }
    }

    if (!found) {
        cout << -1 << endl;
    }
}

int main() {
    double a;
    cin >> a;

    solve(a);

    return 0;
}