#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); vector S1 = {"gray","brown","green","cyan","blue","yellow","orange","red"}; vector S2 = {"gray","green","blue","yellow","red"}; vector S3 = {"gray","green","cyan","blue","violet","orange","red"}; map,int> S; for(int i=0; i now = {S1.at(i),S2.at(k),S3.at(l)}; sort(now.begin(),now.end()); S[now]++; } vector A(3); for(auto &a : A) cin >> a; sort(A.begin(),A.end()); if(S[A] == 1) cout << "Yes\n"; else cout << "No\n"; }