#include <bits/stdc++.h>
using namespace std;
// -1 : +, -2 : -, -3 : *, -4 : /, 1~99±îÁöÀÇ ÀÚ¿¬¼ö
long long int a[100] = {0}, n;


int main()
{
    srand(time(NULL));
    int n;
    for(int c = 18 ; c < 21 ; c++ )
    {
        char in[100], out[100];
        sprintf(in, ".%d.in", c);
        freopen(in, "w", stdout);
        scanf("%d", &n);
        for(int i = 0 ; i < n ; i++ )
        {
            int x = rand()%100;
            if( x < 50 ) cout<<"+ ";
            else if( x < 80 ) cout<<"- ";
            else if( x < 92 ) cout<<"* ";
            else cout<<"/ ";
        }
        for(int i = 0 ; i < n+1 ; i++ )
        {
            cout<<rand()%100+1<<" ";
        }
        cout<<endl;
    }
}
