import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str1=sc.nextLine();
String str2=new StringBuilder(str1).reverse().toString();
int num=Integer.parseInt(str2);
int num1=Integer.parseInt(str1);
System.out.print(num+num1);
}
}

京公网安备 11010502036488号