Problem: This is an output-only problem. You shouldn't read anything from the input.

In short, your task is to simulate multiplication by using only comparison (x < y) and addition (x + y). There is no input in this problem, you just print a sequence of operations.

Imagine that there is a big array a[0], a[1], ..., a[N-1] of length N. The first two values are initially two non-negative integers A and B (which are unknown to you), the other elements are zeros. Your goal is to get the product A \cdot B in a[2] at the end.

You are allowed operations of two types, with the following format (where 0 \leq i, j, k < N):

* `+ i j k` — applies operation a[k] = a[i] + a[j].
* `< i j k` — applies operation a[k] = a[i] < a[j]. That is, if a[i] < a[j] then a[k] becomes 1, otherwise it becomes 0.



You can use at most Q operations. Elements of a can't exceed V. Indices (i, j, k) don't have to be distinct. It's allowed to modify any element of the array (including the first two). The actual checker simulates the process for multiple pairs (A, B) within a single test. Each time, the checker chooses values A and B, creates the array a = [A, B, 0, 0, \ldots, 0], applies all your operations and ensures that a[2] = A \cdot B.

Constraints

* 0 \leq A, B \leq 10^9
* N = Q = 200\,000
* V = 10^{19} = 10\,000\,000\,000\,000\,000\,000

Input

The Standard Input is empty.

Output

In the first line, print the number of operations. Each operation should then be printed in a single line of format `+ i j k` or `< i j k`.

Example

Input




Output

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;

int n = 2e5;
int newnode() { return -- n; }

struct node {
    char op;
    int x, y, z;

    node() { }
    node(char o, int a, int b, int c): op(o), x(a), y(b), z(c) { }
};

vector<node> ans;

void add(int a, int b, int c) { ans.push_back(node('+', a, b, c)); }
void cmp(int a, int b, int c) { ans.push_back(node('<', a, b, c)); }

int zero, temp;
int pw[35], x[35], y[35], z[65];

int main() {
#ifdef Wearry 
    freopen("in", "r", stdin);
    freopen("out", "w", stdout);
#endif

    zero = newnode();
    temp = newnode();
    for (int i = 0; i <= 30; ++i) pw[i] = newnode();
    for (int i = 0; i <= 30; ++i) x[i] = newnode();
    for (int i = 0; i <= 30; ++i) y[i] = newnode();
    for (int i = 0; i <= 60; ++i) z[i] = newnode();

    add(0, 1, temp); 
    cmp(zero, temp, pw[0]);
    for (int i = 1; i <= 30; ++i) add(pw[i-1], pw[i-1], pw[i]);

    for (int i = 30; i >= 0; --i) {
        add(zero, zero, temp);
        for (int j = 30; j > i; --j) add(temp, temp, temp), add(temp, x[j], temp);
        add(temp, temp, temp), add(temp, pw[0], temp);
        for (int j = i-1; j >= 0; --j) add(temp, temp, temp);

        cmp(0, temp, temp);
        cmp(temp, pw[0], x[i]);
    }

    for (int i = 30; i >= 0; --i) {
        add(zero, zero, temp);
        for (int j = 30; j > i; --j) add(temp, temp, temp), add(temp, y[j], temp);
        add(temp, temp, temp), add(temp, pw[0], temp);
        for (int j = i-1; j >= 0; --j) add(temp, temp, temp);

        cmp(1, temp, temp);
        cmp(temp, pw[0], y[i]);
    }

    for (int i = 0; i <= 30; ++i) 
        for (int j = 0; j <= 30; ++j) {
            add(x[i], y[j], temp);
            cmp(pw[0], temp, temp);
            add(temp, z[i + j], z[i + j]);
        }

    add(zero, zero, temp);
    for (int i = 60; i >= 0; --i) add(temp, temp, temp), add(temp, z[i], temp);

    add(temp, 2, 2);

    //cerr << (int) ans.size() << endl;

    printf("%d\n", (int) ans.size());
    for (auto x : ans) {
        printf("%c %d %d %d\n", x.op, x.x, x.y, x.z);
    }

    return 0;
}