#include <bits/stdc++.h>
using namespace std;
const int N = 100000;
const int INF = 2000000000;
int main() {
  bool ex = false;
  double a, b, m;
  double vx, vy, vz;
  cin >> a >> b >> m;
  cin >> vx >> vy >> vz;
  if (vx < 0) ex = true;
  vx = fabs(vx);
  vz = fabs(vz);
  vy = fabs(vy);
  double k = m / vy;
  double px = a / 2 + vx * k;
  double pz = vz * k;
  int tx = int(px / a);
  int tz = int(pz / b);
  double mx = px - tx * a;
  double mz = pz - tz * b;
  if (!((tx + ex) % 2))
    printf("%.8f", mx);
  else
    printf("%.8f", a - mx);
  cout << " ";
  if (!(tz % 2))
    printf("%.8f", mz);
  else
    printf("%.8f", b - mz);
  return 0;
}
