#include <iostream>
using namespace std;

class Foo {
	int x, y;
	
	friend ostream& operator<<(ostream& out, const Foo& f) {
		return out << "x: " << f.x << "\ty: " << f.y;
	}
	
	friend istream& operator>>(istream& in, Foo& f) {
		return in >> f.x >> f.y;
	}

public:
	Foo(int x=0, int y=0): x(x), y(y) {}
};

int main() {
	Foo f;
	cin >> f;
	cout << f << endl;
	
	int x, y;
	cin >> x >> y;
	Foo f2(x, y);
	cout << f2 << endl;
	return 0;
}