#include<iostream>

int main() {
    const unsigned limit = 8;

    std::cout << "Enter " << limit << " integers.\n";

    int product = 1;
    for (unsigned i = 0; i < limit; ++i)
    {
        int value;
        std::cin >> value;
        product *= value;
    }

    std::cout << "The product of those " << limit << " numbers is " << product << '\n';
}