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