#include <iostream>
#include <string>
using namespace std;

class Str
{
public:
    string li;
    string mi;
    Str( string a, string b );
    Str operator +( const Str & c );
};
Str::Str( string a, string b )
{
    li = a;
    mi = b;
}

Str Str::operator +( const Str & c )
{
    Str st( " ala ", " ola " );
    st.li = st.li + c.li;
    
    return st;
}
int main()
{
    Str sr( " kaktus ", " torba " );
    Str s( " wrzawa ", " slonecznik " );
    sr = sr + sr;
    s = s + s;
    cout << sr.li << endl;
    cout << s.li << endl;
    cin.get();
    return 0;
}