import java.util.Scanner;

public class Main {

    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {


        solve();

    }

    private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {


        solve();

    }

    private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    }
} Main private static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {


        solve();

    } main {


        solve();

    } solve() solve String[] args args private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    } solve {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    } String s = scanner.next(); s scanner.next() scanner.next scanner int n = s.length(); n s.length() s.length s boolean result = true; result true for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        } int i = 0; int i = 0; i 0 i < n / 2 i n / 2 n 2 i++ i++ i {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        } {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        } if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            } i < (n / 2) / 2 i (n / 2) / 2 (n / 2) n 2 2 {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            } result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1) result s.charAt(i) == s.charAt((n - 1) / 2 - i-1) s.charAt(i) s.charAt s i s.charAt((n - 1) / 2 - i-1) s.charAt s (n - 1) / 2 - i-1 (n - 1) / 2 - i-1 (n - 1) / 2 (n - 1) n 1 2 i 1 int l = i + (n + 3) / 2; l i + (n + 3) / 2 i (n + 3) / 2 (n + 3) n 3 2 result &= s.charAt(l) == s.charAt(n - 1 - l) result s.charAt(l) == s.charAt(n - 1 - l) s.charAt(l) s.charAt s l s.charAt(n - 1 - l) s.charAt s n - 1 - l n - 1 - l n 1 l result &= s.charAt(i) == s.charAt(n - 1 - i) result s.charAt(i) == s.charAt(n - 1 - i) s.charAt(i) s.charAt s i s.charAt(n - 1 - i) s.charAt s n - 1 - i n - 1 - i n 1 i System.out.println(result ? "Yes" : "No") System.out.println System.out System System.out result ? "Yes" : "No" result "Yes" "No" public class Main {

    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {


        solve();

    }

    private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    }
} public class Main {

    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {


        solve();

    }

    private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {

    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {


        solve();

    }

    private static void solve() {

        String s = scanner.next();

        int n = s.length();

        boolean result = true;

        for (int i = 0; i < n / 2; i++) {

            if (i < (n / 2) / 2) {
                result &= s.charAt(i) == s.charAt((n - 1) / 2 - i-1);
                int l = i + (n + 3) / 2;
                result &= s.charAt(l) == s.charAt(n - 1 - l);
            }

            result &= s.charAt(i) == s.charAt(n - 1 - i);

        }

        System.out.println(result ? "Yes" : "No");
    }
}