#include using namespace std; signed main(){ double x, y; cin >> x >> y; x = x / 3600. * 1000; y = y / 3600. * 1000; int n; cin >> n; vector v(n); for(int i = 0; i < n; i++)cin >> v[i]; double koba, shisho; bool ok = true; for(int i = 0; i < n - 1; i++){ koba = v[i] / x; shisho = koba * y; if(shisho > v[i + 1])ok = false; printf("%.5f %.5f %.5f\n", v[i], shisho, v[i + 1]); } if(n == 1)ok = true; cout << (ok ? "YES" : "NO") << endl; }