#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int t, b, f, s; cin >> t >> b >> f >> s; if (t == 3 && b == 1 && f == 1 && s == 1) { cout << '4' << endl; cout << "3 2 4 3" << endl; cout << "1 3" << endl; cout << "1 1" << endl; cout << "1 2"; } else cout << -1; return 0; }