Arbiter Login

No attempts yetTime limit1sMemory limit128 MB

Problem

The budget for improving the Arbiter web site, an online judge, is finally approved, and the login page is yours to fix. The new login page should warn users about two common typing mistakes.

  1. When the caps lock key is on, every lowercase letter is typed as uppercase and every uppercase letter is typed as lowercase.
  2. When the num lock key is off, the digit characters '0' through '9' are not typed at all.

When a username and a password are entered on the login page, the system compares the entered password with the original password of that user. If the two are the same, the login succeeds and the user moves on to the right page. Otherwise the login fails. When the entered password is related to the original one in one of the ways below, the page also shows a hint.

  1. If the two passwords are the same once case is ignored, and the case of every English letter is opposite, then the caps lock key might be on by mistake.
  2. If the original password with all of its digits removed equals the entered password, then the num lock key might be off by mistake.
  3. The two situations above can happen together.

Given the original password and the entered password, print the right message.

Input

The first line contains the number of test cases nn. Each of the next nn lines holds one test case: two strings of alphanumeric characters, each of length at least 1 and at most 10, separated by a single space. The first string is the original password, and the second one is the password the user entered on the login page.

Output

Print the result of the ii-th test case on the ii-th line. Each line starts with a header that carries the test case number, such as Case 1: or Case 2: , followed by one of the messages below.

  • Login successful.
  • Wrong password. Please, check your caps lock key.
  • Wrong password. Please, check your num lock key.
  • Wrong password. Please, check your caps lock and num lock keys.
  • Wrong password.