s = input()
if len(s) % 2 == 1:
    print("No")
else:
    for i, e in enumerate(s[:len(s) // 2]):
        rev = s[-i - 1]
        if e == "b" and rev != "d":
            break
        elif e == "d" and rev != "b":
            break
        elif e == "p" and rev != "q":
            break
        elif e == "q" and rev != "p":
            break
    else:
        print("Yes")
        exit()
    print("No")
