#include using namespace std; int main() { int t, b, f, c; cin >> t >> b >> f >> c; string ans = "4\n3 2 4 3\n1 3\n1 1\n1 2\n"; cout << ans; return 0; }