#include <iostream.h>
#include <stdio.h>
#include <assert.h>

int main()
{
    char temp[100];
    char **tab = new char*[4];
    assert(tab);
    for(int i=0;i<4;i++)
    {
        gets(temp);
        tab[i]=new char[strlen(temp)+1];
        assert(tab[i]);
        strcpy(tab[i],temp);
    }
    for(int i=0;i<4;i++)
    {
        cout << tab[i];
        delete []tab[i];
    }
    delete []tab;
    system("PAUSE");
    return 0;
}
