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