import hsa.Console;

public class Password
{
    static Console c;

    public static void main (String[] args)
    {
	Password p = new Password ();
	p.process ();
    }
    
    
    void process ()
    {
	c = new Console ();
    
	char input;
	input = askPassword ("pass", '1');
	if (input == 's')
	    c.println ("True.");
	else if (input == '1')
	    c.println ("False.");
    }
    
    
    char askPassword (String password, char exit)
    {
	char input = ' ';
    
	while (input != exit)
	{
	    input = c.getChar ();
	    if (input == password.charAt (0))
	    {
		input = c.getChar ();
		if (input == password.charAt (1))
		{
		    input = c.getChar ();
		    if (input == password.charAt (2))
		    {
			input = c.getChar ();
			if (input == password.charAt (3))
			{
			    break;
			}
		    }
		}
	    }
	}
	return input;
    }
}
