#include using namespace std; #define int long long typedef pair P; int INF = 3e18; int mod = 1e9+7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int A,B,C,D,E,F; cin >> A >> B >> C >> D >> E >> F; if(A == D && B == E && C == F) { cout << "Yes" << endl; cout << 2 << endl; cout << 2 << endl; cout << 2 << endl; } else { cout << "No" << endl; } }