#include <stdio.n>
int main()
{
    char v;
    scanf("%c\n",&v);
    printf("%d\n",v);
}