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