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

void func1(string s) {
    s += '1';
}

void func2(string &s) {
    s += '2';
}

int main ()
{
    string str = "----";
    func1(str);
    func2(str);

    cout << str << endl;

    return 0;
}
