public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //输入字符
        char zf = scanner.next().charAt(0);
        //输出对应的ASCII码值
        System.out.println((int)zf);
    }
}