mosquito.cpp
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main(void) {
int M,P,L,E,R,S,N;
while(scanf("%d %d %d %d %d %d %d",&M, &P, &L, &E, &R, &S, &N) == 7) {
for (int i=1; i<=N; i++) {
N--;
L = M*E;
M = P/S;
P = L/R;
}
cout << M << endl;
}
return 0;
}