public class CharTest {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char ch =scanner.next().charAt(0);
if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ){
System.out.println((int)ch);
}else if (ch >= '0' && ch <= '9'){
System.out.println(ch);
}
}
}