#include using namespace std; #define rep(i,n) for (long long i = 0; i < n; ++i) using ll = long long; constexpr ll INF = 1ll<<30; constexpr ll longINF = 1ll<<60; constexpr ll MOD = 998244353; constexpr bool debug = false; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } //---------------------------------// int main(){ int X, Y; cin >> X >> Y; cout << "4" << endl << X << " " << Y << " " << Y << " " << Y << endl; int rhs; cin >> rhs; if (X == Y){ if (rhs == X) cout << X << endl; else cout << (1 - X) << endl; } else { if (rhs == X) cout << X << endl; else cout << (1 - X) << endl; } return 0; }