#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B, C, D;
  cout << "enter A\n";
  cin >> A;
  cout << "enter B\n";
  cin >> B;
  cout << "enter C\n";
  cin >> C;
  D = A + B;
  if (D >= C) {
    cout << "yes he has 50+100=150yen so he can buy the 120-yen toy";
  } else {
    cout << "no";
  }
  return 0;
}
