#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
 
int main() {
	// your code goes here
 
	// a vector with a capacity of 100 chracters
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	vector<char> c(pow(10,2));
	cout << c.capacity() << endl;
	for(int i = 0; i < 4 ;i++)
	{
		cin >> c[i];
	}
	for(int i = 0; i < 4 ;i++)
	{
		cout << c[i];
	}
 
 
	// a vector with a capacity of 10^18 chracters
	vector<char> r(pow(10,18));
	//GIVES A RUNTIME ERROR I THINK std::bal_alloc  meaning not sufficient memory
 
	//where in memory is vector allocated space i think stack in this case
	cout << r.capacity() << endl;
	for(int i = 0; i < 4 ;i++)
	{
		cin >> r[i];
	}
	for(int i = 0; i < 4 ;i++)
	{
		cout << r[i];
	}
 
	return 0;
}
