#include <iostream>
#include <string>

using namespace std;

class st_rec {
	public:
		int in;
		int x;

		st_rec()
		{
			name="Nameless";
		}

		st_rec(int x, string s)
		{
			in=x;
			name=s;
		}

		void set_name(string s)
		{
			name=s;

			return;
		}

		string get_name()
		{
			return name;
		}

	private:
		string name;
};

void default_name(st_rec &rec)
{
	rec.set_name("Nameless");

	return;
}

int main()
{
	st_rec rec(102, "Volcano");

	for (int i=100; i<105; i++) {
		if (rec.in==i) {
			rec.x=0;
		} else {
			rec.x=1;
		}
		cout << rec.in << " " << rec.x << " " << rec.get_name() << endl;
	}
	cout << endl;

	default_name(rec);
	cout << rec.in << " " << rec.x << " " << rec.get_name() << endl;

	return 0;
}

