Su-su-su-supernova
Time limit1sMemory limit1024 MB
Given a year N and its discovery order M, print the supernova name: SN, the year, then the order written as A to Z, followed by aa to zz.
- Level
Easy2 of 10
- Topics
- Implementation, String
- Solved
- No attempts yet
Problem
사건은 다가와, ah-oh, ayy ♪♫
거세게 커져가, ah-oh, ayy ♫
That tick, that tick, tick bomb ♪
That tick, that tick, tick bomb ♪
감히 건드리지 못할 걸 (누구도 말이야) ♫
지금 내 안에선, su-su-su-supernova ♫♪
Supernova means 초신성 (超新星).
Supernovae have their own naming system. A supernova is named by combining SN, the abbreviation of Supernova, the year it was observed, and its observation order within that year written in Latin letters. The first 26 orders use uppercase A to Z. After that, orders use two lowercase letters such as aa, ab, and ac. Even if only one supernova is observed in a year, it is still labeled A. For example, SN 2014J is the 10th supernova observed in 2014, and SN 2011fe is the 161st supernova observed in 2011.
Given the year a supernova was discovered and its order of discovery that year, print the supernova's name.
Input
The first line contains two integers and , separated by a space. is the year, and is the order in which the supernova was discovered that year.
(, )
Output
Print the name of the given supernova on the first line.