#include <iostream>
using namespace std;
int main(){
int a[14], b[8], cur = 2;
for(int i = 0; i < 14; i++)
cin >> a[i];
b[0] = a[0];
for(int i = 1; i < 8; i++){
b[i] = b[i-1] * a[min(cur,13)];
cur += 2;
}
for(int i = 0; i < 8; i++)
cout << b[i] << " ";
#include <iostream>
using namespace std;
int main(){
int a[14], b[8], cur = 2;
for(int i = 0; i < 14; i++)
cin >> a[i];
b[0] = a[0];
for(int i = 1; i < 8; i++){
b[i] = b[i-1] * a[min(cur,13)];
cur += 2;
}
for(int i = 0; i < 8; i++)
cout << b[i] << " ";
}