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