#include <iostream>
#include <fstream>
using namespace std;

int main() {
	const string layer1password = "XoUnlockableXenonTRIPLEQUADS";
	const string layer2password = "XoUnlockableXenonTRIPLEQUADS --- xVRdToFchFBARyqZ8tfSWcmfG00tGfPaLmUh0vVLm1tb1VZ5aS90So5ZjXGa2vdEtTjSdpl8j6iU6tlPYqSQyqh3Pmmnj6TvCC6TO4DWTBeVjLxHidkmVHOilR2IdcLn";
	string inputPassword, line;

	// First layer of security
	cout << "Enter password: ";
	cin >> inputPassword;
	if (inputPassword == layer1password) {
		cout << "Success!\n\n";
	} else {
		cout << "Password was incorrect.";
		return 1;
	}

	// Second layer of security
	cout << "Looking at your ID...\n";
	ifstream TheInput("fIYElya1HOAetOy2QI9di1Jr8FbaawFSXuNkEtYQRQ4JZLoFvbSvgNwOVbpBwAQfpoiO0ovwHZFebTgBkAw8x1bM8kbh5C9xgt1POTz1hGzLglwr8mX3DaCVIDsbGFoe.txt");
	while (getline(TheInput, line)) {
		cout << line << endl;
	}
	if (line == layer2password) {
		cout << "\nAccess granted -- TheOutput.txt has been generated.";
	} else {
		cout << "\nAccess denied -- Either wrong file or wrong code.";
		return 1;
	}

	ofstream TheOutput("TheOutput.txt");
	TheOutput << "This is The Output. THE because there can only be one. This is THE Output. Keep it or lose it.";
	TheOutput.close();
return 0; }