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