Combination Lock

Problem Name:
Combination Lock
Site:CodeForces
Links:
Tags:
Problem setters: