#include<stdio.h>
#include<conio.h>
int find_min(int p,int q)
{
if(p>q)
return q;
else
return p;
}
int main(void)
{
long cs;
int m, n;
char chpcs;
scanf("%ld", &cs);
while(cs)
{
chpcs=getch();
scanf("%d %d",&m,&n);
if(chpcs=='r'||chpcs=='Q')
printf("%d\n", find_min(m,n ...