def main():
    rev = {'b': 'd', 'd': 'b', 'p': 'q', 'q': 'p'}
    S = input()
    if len(S) % 2 == 1:
        print("No")
        return
    for i in range(len(S)//2):
        if S[i] != rev[S[len(S)-1-i]]:
            print("No")
            return
    print("Yes")


if __name__ == "__main__":
    main()
