var i,n:longint;
    a,b:string;
begin
  readln(a);
  n:=length(a);
  for i:=1 to n do b[n-i+1]:=a[i];
  for i:=1 to n do
  if b[i]='b' then b[i]:='d'
  else if b[i]='d' then b[i]:='b'
  else if b[i]='p' then b[i]:='q'
  else b[i]:='p';
  if a=b then writeln('Yes')
  else writeln('No');
end.
