#include <iostream>
#include <ctime>


using namespace std;

class Timer{
private:
    int startTime;
    int totalTime;
    bool stoped;
public:
    Timer(){
	reset();
    }
    int start(){
	if(stoped){
	    stoped=false;
	    startTime = time(NULL);
	    return 0;
	}
	return -1;
    }

    int stop(){
	if(stoped){
	    return -1;
	}
	int val = time(NULL);
	totalTime += val - startTime;
	stoped = true;
	return 0;
    }

    int getTimer(){
	if(!stoped){
	    return -1;
	}
	return totalTime;
	
    }
    
    int lap(){
	if(stoped){
	    return -1;
	}
	int val = time(NULL);
	return val - startTime+totalTime;
    }

    void reset(){
	startTime = 0;
	totalTime = 0;
	stoped = true;
    }
};




int main(int argc,char *argv[] )
{

    Timer t;
    long limit;
    cout << "Type  a number (not too large, i.e. around ten millions)" << endl ;
    cin >> limit;
    t.start();
    int result=0;
    for(long i=0;i<limit;i++){
	result*=2;
	cout<< "I";
	
    }
    t.stop();
    cout << endl<< t.getTimer() << " seconds" << endl;
    return 0;
}
