
import java.util.Scanner;

public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	}

	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
} import java.util.Scanner; Scanner java.util public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	}

	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
} Main static Scanner scanner; scanner public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	} main {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	} scanner = new Scanner(System.in) scanner new Scanner(System.in) String s=gs(); s gs() gs StringBuffer s0=new StringBuffer(s); s0 new StringBuffer(s) StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2)); s1 new StringBuffer(s.substring(0,(s.length()-1)/2)) StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2)); s2 new StringBuffer(s.substring((s.length()+1)/2)) if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        } s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString()) s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString()) s.equals(s0.reverse().toString()) s.equals s s0.reverse().toString() s0.reverse().toString s0.reverse() s0.reverse s0 s1.toString().equals(s1.reverse().toString()) s1.toString().equals s1.toString() s1.toString s1 s1.reverse().toString() s1.reverse().toString s1.reverse() s1.reverse s1 s2.toString().equals(s2.reverse().toString()) s2.toString().equals s2.toString() s2.toString s2 s2.reverse().toString() s2.reverse().toString s2.reverse() s2.reverse s2 {
    	    System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
        	System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args // 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	} gs {
		return scanner.next();
	} return scanner.next(); scanner.next() scanner.next scanner // intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	} gi {
		return Integer.parseInt(scanner.next());
	} return Integer.parseInt(scanner.next()); Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner // longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	} gl {
		return Long.parseLong(scanner.next());
	} return Long.parseLong(scanner.next()); Long.parseLong(scanner.next()) Long.parseLong Long scanner.next() scanner.next scanner // doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	} gd {
		return Double.parseDouble(scanner.next());
	} return Double.parseDouble(scanner.next()); Double.parseDouble(scanner.next()) Double.parseDouble Double scanner.next() scanner.next scanner public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	}

	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
} public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	}

	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
} Main

import java.util.Scanner;

public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    String s=gs();
	    StringBuffer s0=new StringBuffer(s);
	    StringBuffer s1=new StringBuffer(s.substring(0,(s.length()-1)/2));
	    StringBuffer s2=new StringBuffer(s.substring((s.length()+1)/2));

        if (s.equals(s0.reverse().toString()) && s1.toString().equals(s1.reverse().toString()) && s2.toString().equals(s2.reverse().toString())) {
    	    System.out.print("Yes");
        }else {
        	System.out.print("No");
        }
	}

	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
}