using System; using System.Linq; public class P0581 { public static void Main() { var ac = Console.ReadLine().Trim().Split(' ').Select(long.Parse).ToList(); Console.WriteLine(ac[0] ^ ac[1]); } }