#include using namespace std; int main(){ vectora(3),b(3); cin>>a[0]>>a[1]>>a[2]>>b[0]>>b[1]>>b[2]; sort(a.begin(),a.end()); sort(b.begin(),b.end()); if(a==b){cout<<"Yes\n2\n";} else cout<<"NO\n"; }