
from random import random, randint

import math

#
# for i in range(1, 15):
#     res = math.pow((1 - .3), i)
#     nothit = 1 - res
#     print(f"Odds to hit after {i} shots: {nothit * 100}")




print(1 - math.pow(5.0/6, 3))

'''
1 - (5/6)^n = 0.42129629629629617
'''

