import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
while (s.hasNext()){
int a = Integer.parseInt(s.next(),16);
int b = Integer.parseInt(s.next(),16);
System.out.println(a+b);
}
}
}
运行通过。