#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double ytime = -(double)m / vy;
  double xlate = (double)a / 2, zlate = 0;
  if (vx > 0) {
    double xtime = (double)a / vx;
    xtime = ytime / xtime;
    xtime = xtime - (double)((int)xtime / 2) * 2;
    if (xtime < 0.5) {
      xlate += xtime * (double)a;
    } else if (xtime < 1.5) {
      xlate = (double)a - (double)a * (xtime - 0.5);
    } else {
      xlate = (double)a * (xtime - 1.5);
    }
  } else if (vx < 0) {
    double xtime = -(double)a / vx;
    xtime = ytime / xtime;
    xtime = xtime - (double)((int)xtime / 2) * 2;
    if (xtime < 0.5) {
      xlate -= xtime * (double)a;
    } else if (xtime < 1.5) {
      xlate = (double)a * (xtime - 0.5);
    } else {
      xlate = (double)a - (double)a * (xtime - 1.5);
    }
  }
  if (vz) {
    double ztime = (double)b / vz;
    ztime = ytime / ztime;
    ztime = ztime - (double)((int)ztime / 2) * 2;
    if (ztime < 1) {
      zlate = ztime * (double)b;
    } else {
      zlate = (double)b - (double)b * (ztime - 1.0);
    }
  }
  cout << fixed;
  cout << setprecision(7) << xlate << " " << zlate << endl;
  return 0;
}
