#include <stdio.h>

int main () {
    int a, b, numa, numb, res;
    char op;
    scanf("%c %c %c", &a, &op, &b);
    if(a >= 97) numa = a - 96;
    else numa = a - 38;
    if(b >= 97) numb = b - 96;
    else numb = b - 38;
    if(op == '+') res = numa + numb;
    else if (op == '-') res = numa - numb;
    else if (op == '*') res = numa * numb;
    else if (op == '/') res = numa / numb;
    else if (op == '%') res = numa % numb;
    if(res >= 53) res = res - (res / 52) * 52;
    if(res <= 0) res+=52;
    if(res <= 26) printf("%c", res+96);
    else printf("%c", res+38);
    return 0;
}
//In this code, a-z is denoted as 1-26 and A-Z as 27-52
//Arithmetic operations are applied using this number system
//If the result goes lower than 1, it goes back to 52 (Z)
//If the result goes higher than 52, it goes back to 1 (a)
