Program implements a simple Bayesian Network. From the input, similar to the one in this picture, each probability is computed