import java.io.File; import java.util.Scanner; public class alfredo { public static void main(String [] args) throws Exception { Scanner x = new Scanner(new File("alfredo.in")); int i=1; while(true) { int r, w, l; r = Integer.parseInt(x.next()); if(r == 0) break; w = Integer.parseInt(x.next()); l = Integer.parseInt(x.next()); int m = max(w,l); if(m >= 2*r) { System.out.println("Pizza " + i+ " does not fit on the table."); i++; continue; } double s = m/2; double xx = Math.pow(r, 2) - Math.pow(s, 2); xx = Math.sqrt(xx); if(xx < min(w,l)/2 ) { System.out.println("Pizza " + i+ " does not fit on the table."); i++; continue; } else { System.out.println("Pizza " + i+ " fits on the table."); i++; } } } static int max(int a, int b) { if(a>b) return a; else return b; } static int min(int a, int b) { if(a>b) return b; else return a; } }