#include <bits/stdc++.h>
using namespace std;
unsigned long long int MOD = 1000000007;
unsigned long long int B = 13331;
bool cmp(const int &a, const int &b) { return a < b; }
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int lcm(int a, int b) { return a * (b / gcd(a, b)); }
double func(double mod, double x) {
  int n = (int)(x / (2.0 * mod));
  x -= n * 2.0 * mod;
  while (x < 0.0) x += 2.0 * mod;
  while (x > 2.0 * mod) x -= 2.0 * mod;
  if (x > mod) x = 2.0 * mod - x;
  return x;
}
int main(void) {
  int i;
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double x = func(a, a / 2.0 + vx * (m / (-vy)));
  double z = func(b, vz * (m / (-vy)));
  printf("%.9f %.9f\n", x, z);
  return 0;
}
