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