#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch;
    scanf ("%c",&ch);
    printf ("%d\n",ch);

    return 0;
}