public static void main(String[] args) {
		// TODO Auto-generated method stub
		int a = 0, b = 0;
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter n,c,v and contraints");
		n = sc.nextInt();
		c = sc.nextInt();
		v = sc.nextInt();
		constraints = new int[c][2];

		for (int i = 0; i < c; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			if (a == b || a < 1 || b < 1 || a > n || b > n) {
				System.out
						.println("Exception: Invalid Constraint: \nEnter constraints following these rules:");
				System.out.println("1.) first number != second number");
				System.out
						.println("1.) first number and second number less than value of n");
			}
			constraints[i][0] = a;
			constraints[i][1] = b;

		}
		sc.close();
		A = new int[n];
		for (int i = 0; i < n; i++) {
			A[i] = 0;
		}
		double start = System.currentTimeMillis();
		permutations(n);
		double end = System.currentTimeMillis();
		System.out.println(count + " " + Math.round(end - start));
	}