#include <bits/stdc++.h>
#define INT long long int
using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    srand(time(NULL));
    freopen(".1.in","w",stdout);
    cout<<100<<endl;
    for(int c = 0 ; c < 100 ; c++ )
    {
        int n = rand()%20 + 81;
        for(int i = 0 ; i < n ; i++ )
        {
            int x = rand()%2;
            if( x ) cout<<"(";
            else cout<<")";
        }
        cout<<endl;
    }

}
