using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string str = ""; string num = ""; while (s.Length > 0) { str = s.Substring(0, 4); if (str[3] == 'u') { num += "1"; s = s.Remove(0, 4); } else { num += "0"; s = s.Remove(0, 3); } } int no = Convert.ToInt32(num, 2); no *= 2; num = Convert.ToString(no, 2); str = ""; for (int i = 0; i < num.Length; i++) { if (num[i] == '1') { str += "hamu"; } else { str += "ham"; } } Console.WriteLine(str); Console.Read(); } }