-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = print . foldl1 ((+) . (* 2)) . reverse . foldl1 (zipWith (((`mod` 2) .) . (+))) . map (map (`mod` 2) . flip (scanl (const . (`div` 2))) [1 .. 64] . read) . words =<< getLine