#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; bool d=false; // 將布林值d預設為false if((a&&b)==c){ // 若a and b == c d=true; cout<<"AND"<<endl; } if((a||b)==c){ // 若a or b == c d=true; cout<<"OR"<<endl; } if(a^b==c){ // 若a xor b == c d=true; cout<<"XOR"<<endl; } if(d==false){ // 若前三者不符合 cout<<"IMPOSSIBLE"; } }