#include using namespace std; typedef long long ll; const int mod = 1000000007; int main(){ string N; cin>>N; if(N.size()==2){ cout<<"Yes"<