import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    }
} Main public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) String s=br.readLine(); s br.readLine() br.readLine br String s1=s.substring(0,s.length()/2); s1 s.substring(0,s.length()/2) s.substring s 0 s.length()/2 s.length() s.length s 2 String s2=s.substring(s.length()/2+1,s.length()); s2 s.substring(s.length()/2+1,s.length()) s.substring s s.length()/2+1 s.length()/2 s.length() s.length s 2 1 s.length() s.length s for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } int i=0; int i=0; i 0 i<s1.length()/2 i s1.length()/2 s1.length() s1.length s1 2 i++ i++ i {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } s1.charAt(i)!=s1.charAt(s1.length()-1-i) s1.charAt(i) s1.charAt s1 i s1.charAt(s1.length()-1-i) s1.charAt s1 s1.length()-1-i s1.length()-1-i s1.length() s1.length s1 1 i {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } pw.println("No") pw.println pw "No" pw.flush() pw.flush pw pw.close() pw.close pw return; for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } int i=0; int i=0; i 0 i<s2.length()/2 i s2.length()/2 s2.length() s2.length s2 2 i++ i++ i {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } s2.charAt(i)!=s2.charAt(s2.length()-1-i) s2.charAt(i) s2.charAt s2 i s2.charAt(s2.length()-1-i) s2.charAt s2 s2.length()-1-i s2.length()-1-i s2.length() s2.length s2 1 i {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } pw.println("No") pw.println pw "No" pw.flush() pw.flush pw pw.close() pw.close pw return; for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } int i=0; int i=0; i 0 i<s.length()/2 i s.length()/2 s.length() s.length s 2 i++ i++ i {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        } if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } s.charAt(i)!=s.charAt(s.length()-1-i) s.charAt(i) s.charAt s i s.charAt(s.length()-1-i) s.charAt s s.length()-1-i s.length()-1-i s.length() s.length s 1 i {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            } pw.println("No") pw.println pw "No" pw.flush() pw.flush pw pw.close() pw.close pw return; pw.println("Yes") pw.println pw "Yes" pw.flush() pw.flush pw pw.close() pw.close pw String args[] args public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    }
} public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    }
} Main
import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 
        PrintWriter pw=new PrintWriter(System.out);
        String s=br.readLine();
        String s1=s.substring(0,s.length()/2);
        String s2=s.substring(s.length()/2+1,s.length());
        for(int i=0;i<s1.length()/2;i++)
        {
            if(s1.charAt(i)!=s1.charAt(s1.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s2.length()/2;i++)
        {
            if(s2.charAt(i)!=s2.charAt(s2.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        for(int i=0;i<s.length()/2;i++)
        {
            if(s.charAt(i)!=s.charAt(s.length()-1-i))
            {
                pw.println("No");
                pw.flush();
                pw.close();
                return;
            }
        }
        pw.println("Yes");
        pw.flush();
        pw.close();
    }
}
