S = input()
T = S[::-1]
T = list(T)
for i in range(len(T)):
    if T[i] == "b":
        T[i] = "d"
    elif T[i] == "d":
        T[i] = "b"
    elif T[i] == "p":
        T[i] = "q"
    elif T[i] == "q":
        T[i] = "p"
T = "".join(T)
if S == T:
    print("Yes")
else:
    print("No")
