#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() { vectora(3),b(3); cin >> a[0] >> a[1] >> a[2]; cin >> b[0] >> b[1] >> b[2]; sort(a.begin(),a.end()); sort(b.begin(),b.end()); if(a == b) { cout << "Yes" << endl; cout << 1 << endl; cout << 2 << endl; } else { cout << "No" << endl; } }