import java.util.Scanner;



import java.lang.*; 
import java.io.*; 
import java.util.*; 


public class Main
{
   
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    }
}
 import java.util.Scanner; Scanner java.util import java.lang.*; lang.* java import java.io.*; io.* java import java.util.*; util.* java public class Main
{
   
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    }
} Main public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    } main {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    } Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) String s = keyboard.nextLine(); s keyboard.nextLine() keyboard.nextLine keyboard boolean flag = false; flag false StringBuilder test = new StringBuilder(); test new StringBuilder() test.append(s) test.append test s test = test.reverse() test test.reverse() test.reverse test String reverse = test.toString(); reverse test.toString() test.toString test if(s.equals(reverse))
            flag = true; s.equals(reverse) s.equals s reverse flag = true flag true if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No"); flag == true flag true {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        } String s1 = s.substring(0,((s.length()-1)/2)); s1 s.substring(0,((s.length()-1)/2)) s.substring s 0 ((s.length()-1)/2) (s.length()-1) s.length() s.length s 1 2 String s2 =s.substring((s.length()+1)/2,s.length()); s2 s.substring((s.length()+1)/2,s.length()) s.substring s (s.length()+1)/2 (s.length()+1) s.length() s.length s 1 2 s.length() s.length s if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No"); s1.equals(s2) s1.equals s1 s2 {
                System.out.println("Yes");
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main
{
   
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    }
} public class Main
{
   
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    }
} Main
import java.util.Scanner;



import java.lang.*; 
import java.io.*; 
import java.util.*; 


public class Main
{
   
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        String s = keyboard.nextLine();
        
        boolean flag = false;
        StringBuilder test = new StringBuilder();
        
        test.append(s);
        

        test = test.reverse();
        String reverse = test.toString();
        if(s.equals(reverse))
            flag = true;
        
        if(flag == true)
        {
            String s1 = s.substring(0,((s.length()-1)/2));
            
            
            String s2 =s.substring((s.length()+1)/2,s.length());
            
            if(s1.equals(s2))
            {
                System.out.println("Yes");
            }
            else
                System.out.println("No");
               
        }
        else   
            System.out.println("No");
    }
}

