#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * (b / gcd(a, b)); }
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = ((res % p) * (x % p)) % p;
    y = y >> 1;
    x = ((x % p) * (x % p)) % p;
  }
  return res;
}
long long raichu(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = ((res) * (x));
    y = y >> 1;
    x = ((x) * (x));
  }
  return res;
}
bool isprime(long long n) {
  if (n < 2)
    return false;
  else if (n == 2)
    return true;
  else if (n % 2 == 0)
    return false;
  else {
    long long z = sqrt(n);
    for (long long i = 0; i < z - 1; i++)
      if (n % (i + 2) == 0) return false;
    return true;
  }
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1, T;
  T = t;
  while (t--) {
    long double a, b, m, vx, vy, vz;
    cin >> a >> b >> m >> vx >> vy >> vz;
    long double time = m / (-vy);
    long double x0, y0, z0;
    y0 = 0;
    if (vx >= 0) {
      long double dx = time * vx;
      long double stx = a / 2;
      long long cnt = 0;
      while (dx >= stx) {
        cnt++;
        dx -= stx;
      }
      if (cnt % 4 == 1)
        x0 = a - dx;
      else if (cnt % 4 == 2)
        x0 = stx - dx;
      else if (cnt % 4 == 3)
        x0 = dx;
      else
        x0 = stx + dx;
    } else {
      long double dx = time * (-vx);
      long double stx = a / 2;
      long long cnt = 0;
      while (dx >= stx) {
        cnt++;
        dx -= stx;
      }
      if (cnt % 4 == 1)
        x0 = dx;
      else if (cnt % 4 == 2)
        x0 = stx + dx;
      else if (cnt % 4 == 3)
        x0 = a - dx;
      else
        x0 = stx - dx;
    }
    long double dz = time * vz;
    long long cnt = 0;
    while (dz >= b) {
      cnt++;
      dz -= b;
    }
    if (cnt % 2 == 1)
      z0 = b - dz;
    else
      z0 = dz;
    cout << fixed << setprecision(10) << x0 << " " << z0 << endl;
  }
  return 0;
}
