0 0 0 0 0 FALSE FALSE 120 4 4 40 2 1 All possible cases output.txt TRUE FALSE TRUE FALSE TRUE 300 1000