import java.math.BigInteger; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); BigInteger a=new BigInteger(sc.next()); BigInteger b=new BigInteger(sc.next()); System.out.println(a.xor(b)); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }