import Control.Applicative ((<$>)) import Data.Bits (xor) main :: IO () main = do [a, c] <- map read . words <$> getLine print $ solve a c solve :: Integer -> Integer -> Integer solve a c = xor a c