Under construction

Still being built. Things may change

Increasing Sublist

Time limit5sMemory limit1024 MB

Summary
Given a list of at most 30 integers, find the length of the longest run of consecutive strictly increasing elements.
Level

Easy2 of 10

Topics
Array, Implementation
Solved
No attempts yet

Problem

Given a list of numbers, a sublist is one or more consecutive elements of the list. A sublist is increasing when each element is strictly greater than the element to its left. The first element of a sublist has no element to its left, so it has no condition.

Given a list, find the length (number of elements) of the longest increasing sublist.

Input

The first line contains an integer nn (1≤n≤301 \le n \le 30), the number of elements in the list. The next line contains the nn elements of the list. Each element is an integer between 1 and 100, inclusive.

Output

Print the length (number of elements) of the longest increasing sublist.

Examples2

  1. Example 1

    Input
    6
    5 7 2 4 6 3
    
    Expected output
    3
    
  2. Example 2

    Input
    15
    10 70 80 5 5 5 15 20 30 40 60 9 8 70 80
    
    Expected output
    6