S=list(input())
s=S[::-1]
#print(S)
#print(s)
for i in range(len(S)):
    if S[i]=="b":
        if s[i]!="d":
            print("No")
            exit()
    if S[i]=="d":
        if s[i]!="b":
            print("No")
            exit()
    if S[i]=="p":
        if s[i]!="q":
            print("No")
            exit()
    if S[i]=="q":
        if s[i]!="p":
            print("No")
            exit()
print("Yes")