#include <iostream>

using namespace std;

class String {

    public:

      friend String operator+(const String & l, const String & r);

 String(){}

 String operator+(const String & lhs)
{
cout << "member" << endl;
}
 };

String operator+(const String & l, const String & r)
{
     cout << "friend" << endl;
}

ostream & operator<<(ostream & os, const String & s)
{
   return cout << "cout" << endl;
}

int main()
{
  String one;
 
  cout <<(one + one)<<endl;
}