using System; using System.Collections.Generic; using System.Linq; class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static int[] ReadInts() { return Console.ReadLine().Split().Select(int.Parse).ToArray(); } static string[] ReadStrings() { return Console.ReadLine().Split(); } static string ToHam(int n) { var bin = Convert.ToString(n, 2); return bin.Replace("1", "hamu").Replace("0", "ham"); } static int ToInt(string ham) { var s = ham.Replace("hamu", "1").Replace("ham", "0"); return Convert.ToInt32(s, 2); } static void Main() { var s = Console.ReadLine(); int n = ToInt(s); var ans = ToHam(n * 2); Console.WriteLine(ans); } }