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