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