Mosquito.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Mosquito {
public static void main
(String[] args
) { while(true){
try {
line = br.readLine();
if(line==null) break;
Scanner sc = new Scanner(line);
long M = sc.nextInt();
long P = sc.nextInt();
long L = sc.nextInt();
long E = sc.nextInt();
long R = sc.nextInt();
long S = sc.nextInt();
long N = sc.nextInt();
long V = 0;
for(int i=0; i<N;++i){
long sM = M;
M = P/S;
P = L/R;
L = sM*E;
}
//e.printStackTrace();
return;
}
}
}
}