import time, datetime
import sys

show_possible = False
misses = 0

if(len(sys.argv)<=3):
    sys.exit("INVALID ARGUMENTS "+str(sys.argv))
        #At minimum we require 4 arguments: 'score_finder.py', SCORE, X_COUNT, and SHOTS
else:
    if(len(sys.argv)>4):
        #Optional fifth argument shows permutations containing missed shots
        if str(sys.argv[4]).lower()=="y" or str(sys.argv[4]).lower()=="t":
            show_possible= True
        elif str(sys.argv[4]).lower()=="n" or str(sys.argv[4]).lower()=="f":
            show_possible= False
        else: