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