#include<stdio.h>
int main(){
    char ch;
    do{
    scanf("%c",&ch);    
    }while(((int)ch>=127)||((int)ch<0));
    printf("%d",(int)ch);
}