With the introduction of the new ThrustoZoom gigadimensional drive, it has become possible for HyperCommodities, the import/export conglomerate from New Jersey, to begin trading with even the most remote galaxies in the universe. HyperCommodities wants to import goods from some of the galaxies in the Plural Z sector. Planets within these galaxies export valuable products and raw materials like vacuuseal, transparent aluminum, digraphite, and quantum steel. Preliminary reports have revealed the following facts:
HyperCommodities has assigned a relative value (a positive real number less than 10) to each planet's chief export. The higher the number, the more valuable the product. More valuable products can be resold with a higher profit margin in domestic markets. The problem is to determine which planet has the most valuable export when shipping fees are taken into account.
The input consists of one or more galaxy descriptions. Each galaxy description begins with a line containing an integer $N$ which specifies the number of planets in the galaxy. The next $N$ lines contain descriptions of each planet, which consist of:
d.dd.*; a letter indicates a shipping line to that planet, and a * indicates a willingness to open a ThrustoZoom shipping line to Earth.The input terminates at end of file (EOF).
For each galaxy description, output a single line reading Import from P, where $P$ is the letter of the planet with the most valuable export once shipping fees have been taken into account. If more than one planet has the same most valuable export value, output the planet that is alphabetically first.