package arupsClassFinalTeam;

import java.util.Scanner;

public class NinjaDavidSol {

	public static void main(String[] args) {
		Scanner fs=new Scanner(System.in);
		int T=fs.nextInt();
		for (int tt=0; tt<T; tt++) {
			Plane p=new Plane(
						new Vec3(fs.nextLong(), fs.nextLong(), fs.nextLong()), 
						new Vec3(fs.nextLong(), fs.nextLong(), fs.nextLong()), 
						new Vec3(fs.nextLong(), fs.nextLong(), fs.nextLong())
					);
			boolean[] hit=new boolean[3];
			for (int i=0; i<4; i++) hit[1+p.side(new Vec3(fs.nextLong(), fs.nextLong(), fs.nextLong()))]=true;
			System.out.println(hit[1]||(hit[0]&&hit[2])?"Evil Ninja Prevails!":"Tetra-Bot Survives!");
		}
	}
	
	static class Plane {
		Vec3 n;
		long dotVal;
		public Plane(Vec3 a, Vec3 b, Vec3 c) {
			n=b.sub(a).cross(c.sub(a));
			dotVal=n.dot(a);
		}
		int side(Vec3 o) {
			return Long.compare(dotVal, o.dot(n));
		}
	}
	
	static class Vec3 {
		long x,y,z;
		
		public Vec3(long x, long y, long z) {this.x=x;this.y=y;this.z=z;}
		public Vec3 add(Vec3 o) {return new Vec3(x+o.x, y+o.y, z+o.z);}
		public Vec3 sub(Vec3 o) {return new Vec3(x-o.x, y-o.y, z-o.z);}
		public Vec3 scale(long s) {return new Vec3(x*s, y*s, z*s);}
		public long dot(Vec3 o) {return x*o.x+y*o.y+z*o.z;}

		public Vec3 cross(Vec3 o) {
			long nx=y*o.z-z*o.y;
			long ny=x*o.z-z*o.x;
			long nz=x*o.y-y*o.x;
			return new Vec3(nx, -ny, nz);
		}
		
		public long mag2() {return dot(this);}
		
		public String toString() {
			return "("+x+", "+y+", "+z+")";
		}
	}

}
