S = input()
lenth = int(len(S) / 2)
cnt = 0
for i in range(lenth):
    if ((S[i] == 'b' and S[- i - 1] == 'd') or
       (S[i] == 'd' and S[- i - 1] == 'b') or
       (S[i] == 'p' and S[- i - 1] == 'q') or
       (S[i] == 'q' and S[- i - 1] == 'p')):
           cnt += 1
if cnt == lenth:
    print('Yes')
else:
    print('No')