## On the Subject of Password Generator

Remember those useless and unnecessary password restrictions?

7355608 is much simpler and much more convenient.

This module contains a 7 digit 14 segment display, and keypad containing 6 letters from A-F, 6 symbols, a clear button, a submit button and a number pad.

Due to unknown reason, the password must contain:

- at least 6 characters but not more than 7 characters,
- at least one letter,
- at least one number, and
- at least one symbol.

Because of that, the bomb has forgotten its password.

So it's up to you to help the bomb! The bomb will appreciate your work by disarming itself.

Below are the generalized password created by bombs.

### Part I:

- Take the first letter in the bomb's serial number.
- Convert the letter into its alphanumeric position.
- Take the number modulo 6, then add 1.
- Convert the number back to letter using its alphanumeric position.

### Part II:

- Take the number of indicators, modulo 6 and add 1.
- Convert the number into the alphabet based on its alphanumerical position.
- Take the number of batteries, modulo 6 and add 1.
- Convert the number into the alphabet based on its alphanumerical position.
- Take the number of ports, modulo 6 and add 1.
- Convert the number into the alphabet based on its alphanumerical position.

Input the modified characters that are derived from number of batteries, indicators and ports, in that order.

If there are two or more numbers that are the same (before modification), reverse the sequence.