Give you some numbers, you should tell the sum. But there is a lock, when it locked, anything you input is invaild until unkock. If you lock it, whatever the status it is, it is locked. If you unlock it, whatever how it is, it will unlock.
For each test case, output the sum of this test case.