var numCases = 616;
var cobaltProb = 0.001;
var calculatedOdds = 1 - Math.pow((1 - cobaltProb), numCases);
print("The odds of getting a Cobalt when opening " + numCases + " cases is %" + calculatedOdds*100);
dmFyIG51bUNhc2VzID0gNjE2Owp2YXIgY29iYWx0UHJvYiA9IDAuMDAxOwoKdmFyIGNhbGN1bGF0ZWRPZGRzID0gMSAtIE1hdGgucG93KCgxIC0gY29iYWx0UHJvYiksIG51bUNhc2VzKTsKCnByaW50KCJUaGUgb2RkcyBvZiBnZXR0aW5nIGEgQ29iYWx0IHdoZW4gb3BlbmluZyAiICsgbnVtQ2FzZXMgKyAiIGNhc2VzIGlzICUiICsgY2FsY3VsYXRlZE9kZHMqMTAwKTs=