#include <iostream>
#include <string>
#include <limits>
using namespace std;

int main() {
    string password;

    cout << "Please enter the password!" << endl;
    do {
        getline(cin, password);
        if (password == "test") break;
        cout << "Access denied! Try again." << endl;
    }
    while (true);

    cout << "Access granted!";
    return 0;
}