int main(){
  int bounds[ 2 ] = {1, 100};
  char input[ 2 ] = ;
    
  int choice = (bounds[ 0 ] + bounds[ 1 ]) / 2;
    

  printf( , bounds[ 0 ], bounds[ 1 ] );

  do{
    switch( input[ 0 ] ){
      case 'H':
        bounds[ 1 ] = choice;
        break;
      case 'L':
        bounds[ 0 ] = choice;
        break;
      case 'Y':
        printf(  );
        return 0;
    }
    choice = (bounds[ 0 ] + bounds[ 1 ]) / 2;

    printf( , choice );
  }while( scanf( , input ) == 1 );

  return 0;
}