#include #include #define rep(i,n) for(int i=0;i P; template ostream& operator<<(ostream& os, const static_modint& a) {os << a.val(); return os;} template ostream& operator<<(ostream& os, const dynamic_modint& a) {os << a.val(); return os;} template istream& operator>>(istream& is, static_modint& a) {long long x; is >> x; a = x; return is;} template istream& operator>>(istream& is, dynamic_modint& a) {long long x; is >> x; a = x; return is;} template istream& operator>>(istream& is, vector& v){int n = v.size(); assert(n > 0); rep(i, n) is >> v[i]; return is;} template ostream& operator<<(ostream& os, const pair& p){os << p.first << ' ' << p.second; return os;} template ostream& operator<<(ostream& os, const vector& v){int n = v.size(); rep(i, n) os << v[i] << (i == n - 1 ? "\n" : " "); return os;} template ostream& operator<<(ostream& os, const vector>& v){int n = v.size(); rep(i, n) os << v[i] << (i == n - 1 ? "\n" : ""); return os;} template ostream& operator<<(ostream& os, const set& se){for(T x : se) os << x << " "; os << "\n"; return os;} template ostream& operator<<(ostream& os, const unordered_set& se){for(T x : se) os << x << " "; os << "\n"; return os;} template ostream& operator<<(ostream& os, const atcoder::segtree& seg){int n = seg.max_right(0, [](S){return true;}); rep(i, n) os << seg.get(i) << (i == n - 1 ? "\n" : " "); return os;} template ostream& operator<<(ostream& os, const atcoder::lazy_segtree& seg){int n = seg.max_right(0, [](S){return true;}); rep(i, n) os << seg.get(i) << (i == n - 1 ? "\n" : " "); return os;} template void chmin(T& a, T b){a = min(a, b);} template void chmax(T& a, T b){a = max(a, b);} int main(){ int len = 1; auto plus = [&](int i, int j){ cout << "a " << i << " + " << j << "\n"; len++; return len; }; auto minus = [&](int i, int j){ cout << "a " << i << " - " << j << "\n"; len++; return len; }; auto multiply = [&](int i, int j){ cout << "a " << i << " * " << j << "\n"; len++; return len; }; auto root = [&](int i, int j){ cout << "a " << i << " r " << j << "\n"; len++; return len; }; auto less = [&](int i, int j){ cerr << "#le" << i << ' ' << j << "\n"; cout << "? " << i << " < " << j << "\n"; char c; cin >> c; cerr << c << "\n"; if(c == 'T') return true; return false; }; auto equal = [&](int i, int j){ cerr << "#eq" << i << ' ' << j << "\n"; cout << "? " << i << " < " << j << "\n"; char c1; cin >> c1; cout << "? " << j << " < " << i << "\n"; char c2; cin >> c2; cerr << c1 << ' ' << c2 << "\n"; if(c1 == 'F' and c2 == 'F') return true; else return false; }; auto answer = [&](bool success){ if(success) cout << "! Yes\n"; else cout << "! No\n"; }; rep(_, 1000) plus(1, 1); rep(_, 100) less(1, 1); answer(false); return 0; }