#include<stdio.h>
int main() {
    char w;
    scanf("%c",w);
    printf("%d",w);
    return 0;
}