#include<stdio.h>
#include<string.h>
int main()
{
int n,i,num=,t=;
float p[],sum[],k=,d=;
char ch1[];
char ch[];
scanf("%d",&n);
for(i=;i<n;i++)
{scanf("%f",&p[i]);d+=p[i];}
scanf("%s",ch);
for(i=;i<n;i++)
{
if(i==)
{sum[]=p[];k+=sum[];}
else
{sum[i]=(float)p[i]/(num+);k+=sum[i];}
if(ch[i]=='')
num++;
else
num=;
}
if((float)k/d>=0.5){printf("0>_<0!");return ;}
else while(k/d<0.5&&t<n)
{
k=;
num=;
strcpy(ch1,ch);
ch1[t]='';
for(i=;i<n;i++)
{
if(i==)
{sum[]=p[];k+=sum[];}
else
{sum[i]=(float)p[i]/(num+);k+=sum[i];}
if(ch1[i]=='')
num++;
else
num=;
}
t++;
}
if((float)k/d>=0.5)printf("0>_<0!");
else
printf("POOR LRC!");
}