407090: GYM102697 061 Half Winds
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
061. Half Windstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
A compass has many divisions of cardinal directions, most commonly the four cardinal directions of North, East, South, and West are used, though smaller subdivisions called half winds are available. The half winds can be seen on a 16-wind compass rose, and are north-northeast(NNE), east-northeast(ENE), east-southeast(ESE), south-southeast(SSE), south-southwest(SSW), west-southwest(WSW), west-northwest(WNW) and north-northwest(NNW). For this problem, decode the acronym into the full name of the half wind direction.
InputA single 3 character string containing the acronym to translate.
OutputA single string that represents the full direction name.
ExamplesInputESEOutput
east-southeastInput
NNEOutput
north-northeastNote
All inputs will be capitalized, and all outputs should be lower case with a hyphen included.