#include <bits/stdc++.h>
using namespace std;
long long a1, b, ans = 1, n, m, cnt, c;
string s;
int main() {
  cin >> n;
  long long arr[n];
  set<int> st;
  for (int i = 0; i < n; i++) cin >> arr[i], st.insert(arr[i]);
  if (st.size() == 1) {
    for (int i = 0; i < n; i++) cout << arr[i] << endl;
    return 0;
  }
  sort(arr, arr + n);
  arr[0] += n;
  for (int i = 0; i < n; i++) cout << arr[i] << endl;
}
