    import java.io.*;
    class Main
    {
      public static void main(String args[])throws IOException
      {
        String s,s1="",s2="",s3="",s4="",s5=""; 
        int i,k=0,j=0,l,l1,l2;
        BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
        s=input.readLine();
        l=s.length();
        l1=(l-1)/2;
        l2=(l+3)/2;
        s2=s.substring(0,l1);
        s3=s.substring(l2-1,l);
        for(i=0;i<l;i++)
        {
            s1=s.charAt(i)+s1;
        }
        for(i=0;i<l2;i++)
        {
          if(j<l1)
          {
            s4=s2.charAt(j)+s4;
          }
          if(k<l2-2)
          {
            s5=s3.charAt(k)+s5;
          }
        //  System.out.println(s4+" "+s5);
          j++;
          k++;
        }
        if(s.equals(s1) && s2.equals(s4) && s3.equals(s5))
          System.out.println("Yes");
        else
          System.out.println("No");
      }
    }
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz