Always Follow the Rules in Zombieland

Time limit1sMemory limit128 MB

Problem

Welcome to Zombieland! For the next five hours, your team will battle wits with hordes of the undead. Do you have the cunning, will, and stamina to survive? Follow the rules, and you may live to tell the tale.

In Zombieland there is a fundamental set of numbered rules you must follow to stay alive. For example, rule 8 is "Get a reliable partner", rule 18 is "Limber up", rule 29 is "The buddy system", and rule 22 is "When in doubt, know your way out".

To survive for long in Zombieland, you need to know which rule number goes with which quote. Write a program that, given a rule number, prints the matching quote.

Have fun during your stay in Zombieland, and remember rule 32: "Enjoy the little things".

Input

The first line contains an integer $q$ ($0 < q \le 50$), the number of quotes. Each of the next $q$ lines contains one quote; no quote is longer than 65 characters. The first quote is rule 1, the second quote is rule 2, and so on.

The next line contains an integer $r$ ($0 < r \le 50$), the number of rule numbers to look up, followed by the $r$ rule numbers, one per line.

Output

For each rule number, print Rule, a single space, the rule number, a :, a single space, and the matching quote — that is, the format Rule <rule number>: <quote>. If the rule number falls outside the range of quotes (less than 1 or greater than $q$), print No such rule instead of a quote.