// By shawnduxy
#include <bits/stdc++.h>
using namespace std;

int main() {
  int b, t, p;
  cin >> b >> t >> p;
  if (t - p < b) {
    cout << "N" << endl;
  } else {
    cout << "Y " << t - p - b << endl;
  }
}