#include<iostream>
#include<string>
using namespace std;
class MyClass
{
string figName;
public:
MyClass(const string& s)
{
figName = s;
}
const string& getName() const
{
return figName;
}
};
ostream& operator<<(ostream& ausgabe, const MyClass& f)
{
ausgabe << f.getName();
return ausgabe;
}
int main()
{
MyClass f1("Hello");
cout << f1;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIE15Q2xhc3MKewogICAgc3RyaW5nIGZpZ05hbWU7CnB1YmxpYzoKICAgIE15Q2xhc3MoY29uc3Qgc3RyaW5nJiBzKQogICAgewogICAgICAgIGZpZ05hbWUgPSBzOwogICAgfQoKICAgIGNvbnN0IHN0cmluZyYgZ2V0TmFtZSgpIGNvbnN0CiAgICB7CiAgICAgICAgcmV0dXJuIGZpZ05hbWU7CiAgICB9Cn07Cm9zdHJlYW0mIG9wZXJhdG9yPDwob3N0cmVhbSYgYXVzZ2FiZSwgY29uc3QgTXlDbGFzcyYgZikKICAgIHsKICAgICAgICBhdXNnYWJlIDw8IGYuZ2V0TmFtZSgpOwogICAgICAgIHJldHVybiBhdXNnYWJlOwogICAgfQoKaW50IG1haW4oKQp7CiAgICBNeUNsYXNzIGYxKCJIZWxsbyIpOwogICAgY291dCA8PCBmMTsKfQ==