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