class Solution {
public:
  /*
  * @param A: An array of Integer
  * @return: an integer
  */
  int longestIncreasingContinuousSubsequence(vector<int> &A) {
    // write your code here
  int length=A.size();
  int tempLength=1;
  int maxLength=0;
  if(length<=1)
    return length;
    for(int i=1;i<length;i++) {
      if(A[i]<A[i-1]) {
        tempLength++;
      if(tempLength>maxLength)
        maxLength = tempLength;
    }
  else
    tempLength = 1;
  }
  tempLength = 1;
  for(int i=length-1;i>0;i--) {
    if(A[i]>A[i-1]) {
      tempLength++;
    if(tempLength>maxLength)
      maxLength = tempLength;
  }
  else
    tempLength = 1;
  }
  return maxLength;
  }
};