def main():

    S = input()
    m = dict()
    m['d'] = 'b'
    m['b'] = 'd'
    m['p'] = 'q'
    m['q'] = 'p'

    T = ""
    for i in range(len(S)-1, -1, -1):
        T += m[S[i]]
    if T == S: return "Yes"
    return "No"

if __name__ == '__main__':
    print(main())