#include "mystring.h"

int main() {
    using namespace std;

    MyString s1("hello ");

    MyString s2("world!");

    MyString s3;

    s3 = s1 + s2;

    cout << s3 << endl;

    cout << s1 + s2 << endl;

    cout << s1 + "world!" << endl;

    cout << "hello " + s2 << endl;

    // this is an error
    // cout << "hello " + "world!" << endl;
}
