#include using namespace std; int find_time(int h, int d, int t) { int times = 1 + (h - 1) / d; return (times - 1) * t; } int main() { int h1, d1, t1; int h2, d2, t2; cin >> h1 >> d1 >> t1; cin >> h2 >> d2 >> t2; int t1_time = find_time(h2, d1, t1); int t2_time = find_time(h1, d2, t2); if (t1_time == t2_time) { cout << "draw\n"; } else if (t1_time < t2_time) { cout << "player one\n"; } else { cout << "player two\n"; } }