#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a + b == c) {
    cout << "YES" << endl;
    cout << "He has " << a << " + " << b << " = " << a + b
         << " yen, so he can buy the " << c << "-yen toy.";
  } else {
    cout << "NO" << endl;
    cout << "He has " << a << " + " << b << " = " << a + b
         << " yen, but he cannot buy the " << c << "-yen toy.";
  }
  return 0;
}
