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 are a fundamental set of rules you must follow to stay alive. Rule is "Get a kick&@% partner", rule is "Limber up", rule is "The buddy system", and rule is, "When in doubt, know your way out".
If you intend to survive for long in Zombieland, you'll need to know which rule number goes with which quote. Write a program to display the correct quote given the rule number.
Have fun during your stay in Zombieland, and remember rule , "Enjoy the little things".
Starts with a line that contains the number of quotes (0 < q \le 50). On the following lines will be the quotes, one per line. No quote will be greater than characters. The first quote will be rule , the second quote rule , etc. Following these quotes will be an integer (0 < r \le 50) on a line of its own signifying the number of rules to look up quotes for, followed by a sequence of rule numbers, one per line.
For each rule number, display "Rule", followed by a single space, then the rule number, then a ":" and a single space followed by the appropriate quote. If a rule number falls outside the range of quotes, display the message "No such rule", instead of a quote.
Example 1