Ss = input()

lenS = len(Ss)
for S1, S2 in zip(Ss[:(lenS+1)//2], Ss[lenS-(lenS+1)//2:][::-1]):
    if set([S1, S2]) not in [{'b', 'd'}, {'p', 'q'}]:
        print('No')
        break
else:
    print('Yes')
