#include <bits/stdc++.h>
using namespace std;
int a, b, m, vx, vy, vz;
int main() {
  cin >> a >> b >> m >> vx >> vy >> vz;
  double t = double(m) / double(-vy);
  double x = abs(double(vx) * t + double(a) / 2.0);
  double z = abs(double(vz) * t);
  cout.setf(ios::fixed);
  cout.precision(10);
  x = abs(fmod(x, 2.0 * a));
  if (x > a) x = 2.0 * a - x;
  z = abs(fmod(z, 2.0 * b));
  if (z > b) z = 2.0 * b - z;
  cout << x << ' ' << z << endl;
  return 0;
}
