#include <iostream>
#include <stdio.h>
#include <string.h>
#include <math.h>
#define ll long long
using namespace std;
int main()
{
int t;
int n,h;
char s[50];
scanf("%d",&t);
while(t--)
{
scanf("%d%d%*c",&n,&h);
int M,B,O;
M=B=O=0;
int sum=0;
for(int i=1;i<=n;i++)
{
gets(s);
if(s[0]=='M')M++;
if(s[0]=='B')B++;
if(s[0]=='O')O++;
}
sum+=M*2*(B+O);
sum+=O*(n+1);
sum+=2*B;
if(sum>=h)puts("Mrghllghghllghg!");
else puts("Tell you a joke, the execution of Paladin.");
}
return 0;
}