#include <bits/stdc++.h>
using namespace std;
int main()
{
    vector<int> a(9);
    vector<int> b(9);
    for (int i=0; i<9; i++)
        cin >> a[i];
    for (int i=0; i<9; i++)
        cin >> b[i];
    int sw = a[5];
    int sl = a[6];
    cout << "scissors\n";
    cout << 0 << ' ' << sw*sl << '\n';
    for (int i=1; i<sw; i++)
        for (int j=1; j<sl; j++)
            cout << 4 << ' ' << i-1 << ' ' << j-1 << ' ' << i << ' ' << j-1 << ' ' << i << ' ' << j << ' ' << i-1 << ' ' << j << '\n';
    int tw = b[5];
    int tl = b[6];
    cout << "tape\n";
    cout << tw*tl;
    for (int i=1; i<=(tw*tl); i++)
        cout << ' ' << i;
    cout << '\n';
    for (int i=1; i<tw; i++)
        for (int j=1; j<tl; j++)
            cout << 4 << ' ' << i-1 << ' ' << j-1 << ' ' << i << ' ' << j-1 << ' ' << i << ' ' << j << ' ' << i-1 << ' ' << j << '\n';
    
    cout << 4 << ' ' << 0 << ' ' << 0 << ' ' << tw << ' ' << 0 << ' ' << tw << ' ' << tl << ' ' << 0 << ' ' << tl << '\n';
}
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... |