A typical combination lock will open only after its dial has been moved to the three numbers of the combination in the correct order. For example, the combination "6-12-30" would be used by:
In the progam we will ignore the details of rotation. The lock will open when the user has entered the correct three numbers in sequence.