// NOTE: it is recommended to use this even if you don't understand the following code.

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int       H, W, vx, vy, x1, x2, y1, y2;
long long T, ans;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);

    assert(3 == scanf("%d%d%lld", &W, &H, &T));

    assert(4 == scanf("%d%d%d%d", &x1, &y1, &vx, &vy));

    assert(2 == scanf("%d%d", &x2, &y2));

    ans = 0;


    // INSERT YOUR CODE HERE


    printf("%lld\n", ans);

    return 0;
}
