#include <iostream>
using namespace std;

class A;

class B {
public:
    void Take(A& b);
};

class A {
private:
    int x = 1;
    friend void B::Take(A& b);
    friend void take(A& b);
};

void take(A& b) {
    cout << b.x << endl;
}

void B::Take(A& b)
{
    cout << b.x << endl;
}

int main()
{
    
    
}
