    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");
      }
    } import java.io.*; io.* java 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");
      }
    } 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");
      } main {
        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");
      } String s s s1="" s1 "" s2="" s2 "" s3="" s3 "" s4="" s4 "" s5=""; s5 "" int i i k=0 k 0 j=0 j 0 l l l1 l1 l2; l2 BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) s=input.readLine() s input.readLine() input.readLine input l=s.length() l s.length() s.length s l1=(l-1)/2 l1 (l-1)/2 (l-1) l 1 2 l2=(l+3)/2 l2 (l+3)/2 (l+3) l 3 2 s2=s.substring(0,l1) s2 s.substring(0,l1) s.substring s 0 l1 s3=s.substring(l2-1,l) s3 s.substring(l2-1,l) s.substring s l2-1 l2 1 l for(i=0;i<l;i++)
        {
            s1=s.charAt(i)+s1;
        } i=0; i=0 i 0 i<l i l i++ i++ i {
            s1=s.charAt(i)+s1;
        } {
            s1=s.charAt(i)+s1;
        } s1=s.charAt(i)+s1 s1 s.charAt(i)+s1 s.charAt(i) s.charAt s 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++;
        } i=0; i=0 i 0 i<l2 i l2 i++ i++ 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(j<l1)
          {
            s4=s2.charAt(j)+s4;
          }
          if(k<l2-2)
          {
            s5=s3.charAt(k)+s5;
          }
        //  System.out.println(s4+" "+s5);
          j++;
          k++;
        } if(j<l1)
          {
            s4=s2.charAt(j)+s4;
          } j<l1 j l1 {
            s4=s2.charAt(j)+s4;
          } s4=s2.charAt(j)+s4 s4 s2.charAt(j)+s4 s2.charAt(j) s2.charAt s2 j s4 if(k<l2-2)
          {
            s5=s3.charAt(k)+s5;
          } k<l2-2 k l2-2 l2 2 {
            s5=s3.charAt(k)+s5;
          } s5=s3.charAt(k)+s5 s5 s3.charAt(k)+s5 s3.charAt(k) s3.charAt s3 k s5 j++ j k++ k if(s.equals(s1) && s2.equals(s4) && s3.equals(s5))
          System.out.println("Yes");
        else
          System.out.println("No"); s.equals(s1) && s2.equals(s4) && s3.equals(s5) s.equals(s1) && s2.equals(s4) && s3.equals(s5) s.equals(s1) s.equals s s1 s2.equals(s4) s2.equals s2 s4 s3.equals(s5) s3.equals s3 s5 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" String args[] args
    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");
      }
    }