#include using namespace std; using ll = long long; using ld = long double; // #define int long long #define pii pair #define pll pair #define vi vector #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define mp make_pair #define pb push_back #define sz(v) (int)(v).size() // #define endl '\n' const ld eps = 1e-8; const ll mod = 1e9 + 7; const int inf0 = 1e9 + 10; const ll inf = 2e18 + 10; void solve(); signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); #ifdef LC freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); #endif cout << fixed << setprecision(20); int t = 1; //cin >> t; while (t--) { solve(); } return 0; } const int N = 2e5; ll get_t(ll h, ll d, ll t) { t *= 2; ll need = (h + d - 1) / d; return 1 + t * (need - 1); } void solve() { ll h1, d1, t1; cin >> h1 >> d1 >> t1; ll h2, d2, t2; cin >> h2 >> d2 >> t2; ll T1 = get_t(h1, d2, t2); ll T2 = get_t(h2, d1, t1); if (T1 == T2) { cout << "draw\n"; } else if (T1 < T2) { cout << "player two\n"; } else { cout << "player one\n"; } } // g++ -DLC -o a a.cpp && ./a