public int FantasmaX(int n){
        Query q2;
        Variable a = new Variable("X");
        Variable b = new Variable("Y");

        switch(n){
            case 0:
                q2 = new Query("blinky", new Term[]{a,b});
                return java.lang.Integer.parseInt(q2.oneSolution().get("X").toString());
            case 1:
                q2 = new Query("clyde", new Term[]{a,b});
                return java.lang.Integer.parseInt(q2.oneSolution().get("X").toString());
            case 2:
                q2 = new Query("inky", new Term[]{a,b});
                return java.lang.Integer.parseInt(q2.oneSolution().get("X").toString());
            case 3:
                q2 = new Query("pinky", new Term[]{a,b});
                return java.lang.Integer.parseInt(q2.oneSolution().get("X").toString());
            default:
                return 0;
        }
    }