long a,b;main(){scanf("%ld%ld",&a,&b);printf("%ld",a^b);}