public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); //string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); string str = Console.ReadLine() ?? string.Empty; if (str.Length % 2 == 0) { string n = str.Substring(0, str.Length / 2); str = str.Remove(0, str.Length / 2); if (str == n) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } else { Console.WriteLine("NO"); } } }