# https://school.programmers.co.kr/learn/courses/30/lessons/120838
# programmers, level0: 모스부호(1), python3
def solution(letter: str) -> str:
morse = {
'.-':'a','-...':'b','-.-.':'c','-..':'d','.':'e','..-.':'f',
'--.':'g','....':'h','..':'i','.---':'j','-.-':'k','.-..':'l',
'--':'m','-.':'n','---':'o','.--.':'p','--.-':'q','.-.':'r',
'...':'s','-':'t','..-':'u','...-':'v','.--':'w','-..-':'x',
'-.--':'y','--..':'z'
}
return ''.join(map(str, [morse[x] for x in letter.split()]))