The Earth has been invaded by aliens. They demand our beer and threaten to destroy the Earth if we do not supply the exact number of beers demanded.
Unfortunately, the aliens only speak Morse code. Write a program to convert morse code into numbers using the following convention:
1 .----
2 ..---
3 ...--
4 ....-
5 .....
6 -....
7 --...
8 ---..
9 ----.
0 -----
def morse_converter(string):
    dict = {tuple(a) : str(c) for c, a in enumerate(['-----', '.----', '..---', '...--', '....-', '.....', '-....', '--...', '---..', '----.'])}
    return int(''.join(map(dict.get, zip(*[iter(string)] * 5))))
def morse_converter(string):
    dict = {tuple(a) : str(c) for c, a in enumerate(['-----', '.----', '..---', '...--', '....-', '.....', '-....', '--...', '---..', '----.'])}
    return int(''.join(map(dict.get, zip(*[iter(string)] * 5))))