#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int ar[3];
    cin >> ar[0] >> ar[1] >> ar[2];
    sort(ar, ar + 3);
    if (ar[1] == ar[2]) {
      cout << "Yes" << endl;
      cout << ar[0] << ' ' << ar[0] << ' ' << ar[2] << endl;
    } else
      cout << "No" << endl;
  }
  return 0;
}
