Chef has a rectangular matrix A of nxm integers. Rows are numbered by integers from 1 to n from top to bottom, columns - from 1 to m from left to right. Ai, j denotes the j-th integer of the i-th row.
Chef wants you to guess his matrix. To guess integers, you can ask Chef questions of next type: "How many integers from submatrix iL, iR, jL, jR are grater than or equal to x and less than or equal to y?". By submatrix iL, iR, jL, jR we mean all elements Ai, j for all iL ≤ i ≤ iR and jL ≤ j ≤ jR. 
Also Chef can answer not more than C questions of next type: "What is the sum of integers from submatrix iL, iR, jL, jR?"
As soon as you think you know the Chefs matrix, you can stop asking questions and tell to the Chef your variant of the matrix. Please see "Scoring" part to understand how your solution will be evaluated. 

-----Input-----
The first line of the input contains three space-separated integers n, m and C denoting the sizes of the matrix and the maximum number of the second-type questions. After that the judge will answer your questions and evaluate the resuts. Read more about that in the "Interaction with the judge" part of the statement. 

-----Interaction with the judge-----
To ask a first-type question you should print to the standard output one line containing seven space-separated integers 1 iL iR jL jR x y. To ask a second-type question you should print one line containing five space-separated integers 2 iL iR jL jR. After that you should read from the standard input one integer - answer to the question. To end the game you should print 3 and starting from next line print n lines, each of them contains m space-separated integers - your variant of the matrix A. After that your program must stop. Remember to flush the output after every line you print.

-----Constraints-----
- 1 ≤ n, m ≤ 2.5 * 105
- 1 ≤ n * m ≤ 2.5 * 105
- 103 ≤ C ≤ 104
- 1 ≤ Ai, j ≤ 50
- 1 ≤ iL ≤ iR ≤ n
- 1 ≤ jL ≤ jR ≤ m
- 1 ≤ x ≤ y ≤ 50
- 0 ≤ number of asked questions ≤ 5 * 105
- 1 ≤ Bi, j ≤ 50
- 1 ≤ a1, a2, a3 ≤ 10

----- Scoring -----
Let B will be the matrix you output and diff = ∑ |Ai, j - Bi, j| for all 1 ≤ i ≤ n, 1 ≤ j ≤ m. The number of questions you asked is questions. The number of integers, you correctly guessed is correct(i. e. the number of elements i, j such that Ai, j = Bi, j). 
The score for each test case will be: score = a1 * questions +  a2 * diff +  a3 * (n * m - correct).
Your goal is to minimize this score.
Your total score for the problem will be the sum of scores on all the test cases.

-----Example-----
Input:
3 3 10
4
0
3
1
6

Output:
1 1 2 1 2 1 3
1 3 3 1 3 1 1
1 3 3 1 3 2 2
1 1 2 3 3 1 1
2 3 3 1 3
3
2 2 1
2 2 1
2 2 2


-----Explanation-----

[1, 2, 3]
A = [3, 2, 1]
[2, 2, 2]

For this test case a1 = 1, a2 = 1 and a3 = 1.
The score for this test case will be 1 * 5 + 1 * 4 + 1 * (9 - 6) = 12.

----- Test data generation -----
There will be four types of the test files.
- Type #1: n = 10,  m = 25000
- Type #2: n = 100,  m = 2500
- Type #3: n = 250,  m = 1000
- Type #4: n = 500,  m = 500
There will be 5 test files of each type. During the contest, you will be shown the score for only one test file of each type.
All elements of matrix A are randomly chosen.
For each test case C is randomly chosen from interval [103 .. 104].
For each test case values a1, a2 and a3 are manually chosen.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "# CHNGSS.py\n\nimport sys\nfrom random import *\n\nn,m,c = list(map(int,input().split()))\narr = [[1]*m for i in range(n)];\nsaved = 0;\nfor i in range(n):\n\tfor j in range(m):\n\t\tprint(1,(i+1),(i+1),(j+1),(j+1),1,15)\n\t\tsys.stdout.flush()\n\t\ta = int(input())\n\t\tif a == 1 :\n\t\t\tsaved += 1;\n\t\t\tarr[i][j] = randint(1,15);\n\t\telse:\n\t\t\tprint(1,(i+1),(i+1),(j+1),(j+1),16,30)\n\t\t\tsys.stdout.flush()\n\t\t\ta = int(input())\n\t\t\tif a == 1 :\n\t\t\t\tarr[i][j] = randint(16,30);\n\t\t\telse:\n\t\t\t\tif saved > 0 :\n\t\t\t\t\tsaved -= 1;\n\t\t\t\t\tprint(1,(i+1),(i+1),(j+1),(j+1),31,40);\n\t\t\t\t\tsys.stdout.flush()\n\t\t\t\t\ta = int(input())\n\t\t\t\t\tif a == 1 :\n\t\t\t\t\t\tarr[i][j] = randint(31,40);\n\t\t\t\t\telse:\n\t\t\t\t\t\tarr[i][j] = randint(41,50);\n\t\t\t\telse:\n\t\t\t\t\tarr[i][j] = randint(31,50);\nprint(3);\nsys.stdout.flush()\nfor a in arr :\n\tprint(' '.join(map(str,a)));\n\tsys.stdout.flush()\n# sys.exit(0);"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: