using System.Collections.Generic;
public static void Main()
Console.WriteLine("Введите незашифрованное сообщение");
Dictionary<char, String> morse = new Dictionary<char, String>()
string s = Console.ReadLine();
for (int i = 0; i < s.Length; i++)
if (morse.ContainsKey(c))
Console.WriteLine("Введите зашифрованное сообщение");
Dictionary<String,char> morse1 = new Dictionary<string,char>();
foreach(var p in morse) { morse1.Add(p.Value,p.Key); }
string[] s1 = s.Split(' ');
for(int i =0; i<s1.Length; i++)
if (morse1.ContainsKey(z)) { res+=morse1[z]; }