SP744 LPERMUT - Longest Permutation

Description

You are given a sequence A of n integer numbers (1

Input Format

- Line 1: n (1

Output Format

A single integer that is the length of the longest permutation