using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions; public static class P { static void Main() { var ab = Console.ReadLine().Split().Select(BigInteger.Parse).ToArray(); var a = ab[0]; var b = ab[1]; Console.WriteLine(a ^ b); } }