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.

Input

A single 3 character string containing the acronym to translate.

Output

A single string that represents the full direction name.

ExamplesInput
ESE
Output
east-southeast
Input
NNE
Output
north-northeast
Note

All inputs will be capitalized, and all outputs should be lower case with a hyphen included.

加入题单

上一题 下一题 算法标签: