/* package codechef; // don’t place package name! */
import java.util.;
import java.lang.;
import java.io.;
import java.util.Scanner.;
/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int rs,prs,brs,t;
Scanner s = new Scanner(System.in);
t=s.nextInt();
if(0<t)
{
if(t<101){
rs= s.nextInt();
prs= s.nextInt();
brs= s.nextInt();
if(rs>=prs)
System.out.println("He can eat pizza");
else if(prs>rs)
{
if(rs>brs)
{
System.out.println("He can not buy a PIZZA but can buy a BURGER for his dinner.");
}
else
System.out.println("he can not buy anything and remains hungry :");
}}
}
}