#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; if (s.size() == 2) cout << "Yes" << endl; else cout << "No" << endl; }