#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000009;
const double PI = acos(-1.0);
const double eps = 1e-11;
const int MAXN = 0;
const int MAXM = 0;
struct dot {
  double x, y, z;
};
dot ball;
dot speed;
int a, b, m;
pair<double, int> t[10];
bool cmp(pair<double, int> a, pair<double, int> b) {
  if (b.first <= eps) return true;
  if (a.first <= eps) return false;
  if (a.first < b.first) return true;
  if (a.first > b.first) return false;
  return a.second < b.second;
}
int main() {
  cin >> a >> b >> m;
  cin >> speed.x >> speed.y >> speed.z;
  ball.x = a / 2.;
  ball.y = m;
  ball.z = 0;
  while (true) {
    if (speed.x == 0)
      t[0] = make_pair(INF, 1);
    else
      t[0] = make_pair(-ball.x / double(speed.x), 1);
    if (speed.y == 0)
      t[1] = make_pair(INF, 2);
    else
      t[1] = make_pair(-ball.y / double(speed.y), 2);
    if (speed.z == 0)
      t[2] = make_pair(INF, 3);
    else
      t[2] = make_pair(-ball.z / double(speed.z), 3);
    if (speed.x == 0)
      t[3] = make_pair(INF, 1);
    else
      t[3] = make_pair((a - ball.x) / double(speed.x), 1);
    if (speed.z == 0)
      t[4] = make_pair(INF, 3);
    else
      t[4] = make_pair((b - ball.z) / double(speed.z), 3);
    sort(t, t + 5, cmp);
    ball.x += t[0].first * speed.x;
    ball.y += t[0].first * speed.y;
    ball.z += t[0].first * speed.z;
    if (t[0].second == 2) {
      printf("%.8lf %.8lf\n", ball.x, ball.z);
      return 0;
    }
    if (t[0].second == 1) speed.x = -speed.x;
    if (t[0].second == 3) speed.z = -speed.z;
  }
  return 0;
}
