public static void main(String[] args) throws NoSuchFileException, IllegalArgumentException {
		
    	if (args.length == 4) {
    		
        	Draft.checkHash(  args[0] );
        	Draft.checkRange( args[1], 1, 1000 );
        	Draft.checkRange( args[2], 1, 1000000 );
        	Draft.checkPath(  args[3] );
        	exec(args[3], Integer.parseInt(args[1]), args[0], Integer.parseInt(args[2]));
        	
    	} else if (args.length == 0) {
    		
        	String path = GetInput.askPath("Path to the file");
        	String hash = GetInput.askHash("Hash function");
        	int nbWords = GetInput.askParameterInRange("Number of words needed", 1, 1000);
        	int halfBag = GetInput.askParameterInRange("Half size of the bag", 1, 1000000);
        	exec(path, nbWords, hash, halfBag);
        	
    	} else
    		throw new IllegalArgumentException("Wrong number of arguments (4 expected)");
		
	}