#include <iostream>
#include <cstdio>
using namespace std;
int m,n;
char a[100005],b;
int abs(int x){
	if(x>=0) return x;
	else return x*-1;
}
int main(){
	while((a[++m]=getchar())!='\n');
	if(m%2!=0){
		cout<<"No"<<endl; 
		return 0;
	} 
	for(int i=m;i>=m/2;i--){
		int cha=abs(a[i],a[m-i+1]);
		if(cha!=1&&cha!=2){
			cout<<"No"<<endl;
			return 0;
     	}
	}
	cout<<"Yes"<<endl;
	return 0;
} 