public static void main(String[] args) throws NoSuchFileException, IllegalArgumentException {
		
    	if (args.length == 4) {
    		
        	Draft.checkHash( args[0] );
        	Draft.checkRange(args[1], 1, 1000000000);
        	Draft.checkRange(args[2], 1, 1000000000);
        	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 nbOcc = GetInput.askParameterInRange("Number of occurences", 1, 1000000000);
        	int k = 	GetInput.askParameterInRange("Parameter k", 1,  1000000000);
        	exec(path, nbOcc, hash, k);
        	
    	} else
    		throw new IllegalArgumentException("Wrong number of arguments (4 expected)");
		
	}