using System; public class Program { public static void Main() { string[] s = Console.ReadLine().Split(' '); long a = long.Parse(s[0]); long c = long.Parse(s[1]); long b = a ^ c; Console.WriteLine(b); } }