#include <bits/stdc++.h>
using namespace std;
const int MN = 1e5 + 100;
int dp[MN][2];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<int> v(n + 1);
  vector<int> lol;
  v[n] = 1e9 + 10;
  for (int i = 0; i < n; ++i) {
    cin >> v[i];
    lol.push_back(v[i]);
  }
  vector<int> v2(n - 1);
  int q = 0;
  for (int i = 0; i < n - 1; ++i) {
    v2[i] = v[i + 1] - v[i];
    if (v2[i] <= 0) q = 1;
  }
  if (q == 0) {
    cout << n << '\n';
    return 0;
  }
  int ma = 1;
  for (int i = 0; i < n - 1; ++i) {
    if (v2[i] > 0)
      continue;
    else {
      int a = 1;
      for (int j = i - 1; j >= 0; --j) {
        if (v2[j] <= 0) break;
        a = i - j + 1;
      }
      int b = 1;
      for (int j = i + 1; j < n - 1; ++j) {
        if (v2[j] <= 0) break;
        b = j - i + 1;
      }
      if (i < n - 2) {
        if (v2[i + 1] + v2[i] >= 2) {
          ma = max(ma, a + b);
        }
      }
      if (i) {
        if (v2[i - 1] + v2[i] >= 2) {
          ma = max(ma, a + b);
        }
      }
      ma = max(ma, max(a, b) + 1);
    }
  }
  cout << ma << '\n';
}
