#!/usr/bin/python # -*- coding: utf-8 -*- A, B = map(int, raw_input().split()) print int(bin(A | B),2)