Naming Wine Bottles
시간 제한2초메모리 제한1024 MB
와인 병 n개의 용량이 주어질 때 같은 용량에는 같은 이름을 붙이도록 각 용량에 소문자 라틴 문자 이름을 정한다.
문제
Wine is a sophisticated business. Bottling alone encompasses the art of label design, the physics of vacuum sealing, the craft of glassforming, and the calculus of volumetric shapes.
Today we will deal with literature: every size of wine bottle has a name. You may know that a “Standard” bottle holds 0.75L. Did you also know that a 15L bottle is a “Nebuchadnezzar”, and a 12L is a mighty “Balthazar”?
Usually wine bottle sizes come in multiples of 1.5L. You have some other bottles in non-standard sizes and you will need to create impressive names for them as well. Note that any two bottles of the same size must have consistent names.
입력
- On the first line, the number of bottles ()
- On each of the following lines, the volume of a bottle () with up to digits after the decimal point, followed by an uppercase letter "L"
출력
For each given line, output one lower-case word, with Latin letters only, giving a name for this size of bottle.