S=str(input())
sr=S[::-1]
sr=sr.replace('b','D')
sr=sr.replace('d','B')
sr=sr.replace('p','Q')
sr=sr.replace('q','P')

sr=sr.replace('D','d')
sr=sr.replace('B','b')
sr=sr.replace('P','p')
sr=sr.replace('Q','q')

if S==sr:
    print('Yes')
else:
    print('No')
