import java.util.Scanner;

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

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.next();

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.next();

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    } main {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.next();

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputString = scanner.next(); inputString scanner.next() scanner.next scanner String answer = "Yes"; answer "Yes" if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        } inputString.length() % 2 == 0 inputString.length() % 2 inputString.length() inputString.length inputString 2 0 {
            answer = "No";
        } answer = "No" answer "No" {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        } String firstPart = inputString.substring(0, inputString.length() / 2); firstPart inputString.substring(0, inputString.length() / 2) inputString.substring inputString 0 inputString.length() / 2 inputString.length() inputString.length inputString 2 String secondPart = inputString.substring((inputString.length() / 2) + 1); secondPart inputString.substring((inputString.length() / 2) + 1) inputString.substring inputString (inputString.length() / 2) + 1 (inputString.length() / 2) inputString.length() inputString.length inputString 2 1 if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            } !firstPart.equals(secondPart) firstPart.equals(secondPart) firstPart.equals firstPart secondPart {
                answer = "No";
            } answer = "No" answer "No" {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            } char[] chars = firstPart.toCharArray(); chars firstPart.toCharArray() firstPart.toCharArray firstPart for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } int i = 0; int i = 0; i 0 i < chars.length / 2 i chars.length / 2 chars.length chars chars.length 2 i++ i++ i {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    } chars[i] != chars[chars.length - (i + 1)] chars[i] chars i chars[chars.length - (i + 1)] chars chars.length - (i + 1) chars.length chars chars.length (i + 1) i 1 {
                        answer = "No";
                        break;
                    } answer = "No" answer "No" break; System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.next();

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.next();

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    }
} Main
import java.util.Scanner;

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

        String answer = "Yes";
        if (inputString.length() % 2 == 0) {
            answer = "No";
        } else {
            String firstPart = inputString.substring(0, inputString.length() / 2);
            String secondPart = inputString.substring((inputString.length() / 2) + 1);
            if (!firstPart.equals(secondPart)) {
                answer = "No";
            } else {
                char[] chars = firstPart.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
            }
        }

        System.out.println(answer);
    }
}