#include <bits/stdc++.h>
using namespace std;
long long int ESP = 1e18;
long long int FCB = 1e9 + 7;
long long int prime = 119;
long long int dir[][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
void solve() {
  long double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  long double time = m / abs(vy);
  long double x = a / 2 + time * vx;
  long double z = time * vz;
  while (x <= 0) x += 2 * a;
  while (x >= 2 * a) x -= 2 * a;
  while (z <= 0) z += 2 * b;
  while (z >= 2 * b) z -= 2 * b;
  if (x >= a) {
    x -= a;
    x = a - x;
  }
  if (z >= b) {
    z -= b;
    z = b - z;
  }
  cout << fixed << setprecision(12) << x << " ";
  cout << fixed << setprecision(12) << z << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  solve();
  return 0;
}
