#include <stdio.h>
#include <string.h>
long int right,high=8888,low=0,i=0,pre_high,pre_low,h=0;
char status[20],hg[1000],lw[1000];
int main()
{
int guess_num;
while(1)
{
if(guess_num==0)
break;
scanf("%d",&guess_num);
getchar();
gets(status);
if(strcmp(status,"too high")==0)
{
high=guess_num;
pre_high=high;
if(high<pre_low)
{
h=1;
}
}
else if(strcmp(status,"too low")==0)
{
low=guess_num;
pre_low=low;
if(low>pre_low)
{h=1;
}
}
else if(strcmp(status,"right on")==0)
{
right=guess_num;
if(h==1)
goto P;
if((high>right) && (low<right))
printf("Stan may be honest\n");
else
{P:
printf("Stan is dishonest\n");}
}
}
return 0;
}
