import copy

s = eval(input())



mae = s[:len(s) // 2]

ushiro = s[len(s) // 2 + 1:]

ushiro2 = copy.deepcopy(ushiro[::-1])



if mae == ushiro:

    print('Yes')

else:

    print("No")

s = eval(input())

mae = s[:len(s) // 2]

ushiro = s[len(s) // 2 + 1:]

ushiro2 = ushiro[::-1]

if mae == ushiro:

    print('Yes')

else:

    print("No")

import copy

s = eval(input())
mae = s[: len(s) // 2]
ushiro = s[len(s) // 2 + 1 :]
ushiro2 = copy.deepcopy(ushiro[::-1])
if mae == ushiro:
    print("Yes")
else:
    print("No")

s = eval(input())
mae = s[: len(s) // 2]
ushiro = s[len(s) // 2 + 1 :]
ushiro2 = ushiro[::-1]
if mae == ushiro:
    print("Yes")
else:
    print("No")

-import copy - -ushiro2 = copy.deepcopy(ushiro[::-1]) +ushiro2 = ushiro[::-1]