using System;
using System.Linq;
public class Test
{
public static void Main() => new Test().Run();
void Run()
{
Console.WriteLine(s("апХчиЕмаЁ"));
Console.WriteLine(s("МиномЁт"));
Console.WriteLine(s("еёЁжикЕст"));
Console.WriteLine(s("TeaseMePleaseMe"));
}
string s(string x)=>new string(x.OrderBy(c=>(""+c).ToUpper()).ToArray());
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkgPT4gbmV3IFRlc3QoKS5SdW4oKTsKCQoJdm9pZCBSdW4oKQogICAgewogICAgCUNvbnNvbGUuV3JpdGVMaW5lKHMoItCw0L/QpdGH0LjQldC80LDQgSIpKTsKICAgIAlDb25zb2xlLldyaXRlTGluZShzKCLQnNC40L3QvtC80IHRgiIpKTsKICAgIAlDb25zb2xlLldyaXRlTGluZShzKCLQtdGR0IHQttC40LrQldGB0YIiKSk7CiAgICAJQ29uc29sZS5Xcml0ZUxpbmUocygiVGVhc2VNZVBsZWFzZU1lIikpOwogICAgfQoKCXN0cmluZyBzKHN0cmluZyB4KT0+bmV3IHN0cmluZyh4Lk9yZGVyQnkoYz0+KCIiK2MpLlRvVXBwZXIoKSkuVG9BcnJheSgpKTsKfQ==