// xxx
import std.algorithm;
import std.random;
import std.stdio;
import std.string;

void main ()
{
	auto normal = ["no", "not bad", "cool", "don't think so", "great!",
	    "don't touch me!"];
	auto grumpy = ["no", "don't even", "worse", "no way", "terrible",
	    "go die in a hole", "are you serious?"];
	rndGen.seed (unpredictableSeed);
	while (true)
	{
		auto i = uniform (0, 10);
		writeln (i);
		stdout.flush ();
		auto s = readln.strip;
		if (normal.canFind (s) && !grumpy.canFind (s))
		{
			writeln ("normal");
			break;
		}
		if (grumpy.canFind (s) && !normal.canFind (s))
		{
			writeln ("grumpy");
			break;
		}
	}
}
