#include <iostream>
#include <array>
#include <algorithm>
#include <iterator>

int main() {
    std::array<int, 5> A = {1488, 14, 88, 100, 1};
    std::fill(std::min_element(A.begin(), A.end()) + 1, A.end(), 0);
	
    std::copy(A.begin(), A.end(), std::ostream_iterator<int>(std::cout, " "));
    return 0;
}