import java.util.*;
//import java.util.stream.Collectors;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	}
	
	static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	}
	
	static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String firstHalf = s.substring(0, (s.length() - 1) / 2); firstHalf s.substring(0, (s.length() - 1) / 2) s.substring s 0 (s.length() - 1) / 2 (s.length() - 1) s.length() s.length s 1 2 String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length()); secondHalf s.substring((s.length() + 3) / 2 - 1, s.length()) s.substring s (s.length() + 3) / 2 - 1 (s.length() + 3) / 2 (s.length() + 3) s.length() s.length s 3 2 1 s.length() s.length s int count = 0; count 0 if(isPalindrome(s)){
			count++;
		} isPalindrome(s) isPalindrome s {
			count++;
		} count++ count if(isPalindrome(firstHalf)){
			count++;
		} isPalindrome(firstHalf) isPalindrome firstHalf {
			count++;
		} count++ count if(isPalindrome(secondHalf)){
			count++;
		} isPalindrome(secondHalf) isPalindrome secondHalf {
			count++;
		} count++ count System.out.println(count == 3 ? "Yes" : "No") System.out.println System.out System System.out count == 3 ? "Yes" : "No" count == 3 count 3 "Yes" "No" String[] args args static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	} isPalindrome {
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	} boolean flg = true; flg true for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		} int i=0; int i=0; i 0 i<s.length() / 2 i s.length() / 2 s.length() s.length s 2 i++ i++ i {
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		} {
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		} if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			} s.charAt(i) != s.charAt(s.length()-i-1) s.charAt(i) s.charAt s i s.charAt(s.length()-i-1) s.charAt s s.length()-i-1 s.length()-i-1 s.length() s.length s i 1 {
				flg = false;
				break;
			} flg = false flg false break; return flg; flg String s s public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	}
	
	static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	}
	
	static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	}
} Main
import java.util.*;
//import java.util.stream.Collectors;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		String firstHalf = s.substring(0, (s.length() - 1) / 2);
		String secondHalf = s.substring((s.length() + 3) / 2 - 1, s.length());
		int count = 0;
		if(isPalindrome(s)){
			count++;
		}
		if(isPalindrome(firstHalf)){
			count++;
		}
		if(isPalindrome(secondHalf)){
			count++;
		}
		System.out.println(count == 3 ? "Yes" : "No");
	}
	
	static boolean isPalindrome(String s){
		boolean flg = true;
		for(int i=0; i<s.length() / 2; i++){
			if(s.charAt(i) != s.charAt(s.length()-i-1)){
				flg = false;
				break;
			}
		}
		return flg;
	}
}
