str_1 = input() a = len(str_1) // 2 if str_1[:a] == str_1[a:]: print("Yes") else: print("No")