import java.util.Scanner; public class solve4{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); System.out.println(a ^ b); //排他的論理和は排他的論理和で求められる } }