#include #include #include #define INF 1000000000 using namespace std; // #define int long long signed main(){ int N; int A[1000]; for(int i=0;i> A[i]; } int c =0; for(int i=0;iA[i+2])c++; } cout << c << endl; }