#include <bits/stdc++.h>
using namespace std;
int main(){
	int L, R;
	cin >> L >> R;
	cout << 4 << endl;
	cout << L << ' ' << R << ' ' << R << ' ' << R << endl;
	int t;
	cin >> t;
	cout << t << endl;
}