#include using namespace std; int main(){ for(int i=0;i<100;i++){ string s;cin >> s; if(s.size()!=1){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; }