public static void main(String[] args) throws Throwable {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for( String linea; (linea = in.readLine() ) != null ; ) {
			v = new boolean[12];
			int guess = Integer.parseInt(linea);
			if(guess == 0) break;
			String resp = in.readLine();
			while( !resp.equals("right on") ){
				if( resp.equals("too high") )
					for (int i = guess; i < v.length; i++) 
						v[i]=true;
				else
					for (int i = guess; i >= 0; i--) 
						v[i] = true;
				guess = Integer.parseInt(in.readLine());
				resp = in.readLine();
			}
			if( v[guess] )
				System.out.println("Stan is dishonest");
			else
				System.out.println("Stan may be honest");
		}
	}