import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // 读取输入字符串 String a = scanner.nextLine(); String b = new StringBuilder(a).reverse().toString(); // 将字符串转换为整数 int x = Integer.parseInt(a); int y = Integer.parseInt(b); // 输出结果 System.out.println(x + y); scanner.close(); } }