package main import ( "bufio" "fmt" "os" "strconv" ) var sc = bufio.NewScanner(os.Stdin) func Scanner() string { sc.Scan() return sc.Text() } func main() { buf := make([]byte, 0) sc.Buffer(buf, 100000007) sc.Split(bufio.ScanWords) a, _ := strconv.Atoi(Scanner()) c, _ := strconv.Atoi(Scanner()) fmt.Println(a ^ c) }