#include int main(){ int a,c; scanf("%d %d",&a,&c); printf("%d\n",a^c); return 0; }