#include using namespace std; typedef long long ll; ll a,b; int main(void){ cin>>a>>b; cout<<(a^b)<