#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    int n;
    std::cin >> n;

    if (n < 5 || n > 100) {
        std::cerr << "Invalid input size. Please enter a number between 5 and 100." << std::endl;
        return 1;
    }

    std::vector<int> arr(n);
    for (int i = 0; i < n; ++i) {
        std::cin >> arr[i];
    }

    // Find the minimum element in the array
    auto min_it = std::min_element(arr.begin(), arr.end());

    // Remove the minimum element from the array
    arr.erase(min_it);

    // Output the remaining elements
    for (const int& num : arr) {
        std::cout << num << " ";
    }
    std::cout << std::endl;

    return 0;
}
/**************************************************************
	Problem: 1213
	User: zhenghaoxuan
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/