#K91862. Find the Missing Number

    ID: 38070 Type: Default 1000ms 256MiB

Find the Missing Number

Find the Missing Number

You are given an unsorted list of distinct integers, which represents a consecutive sequence from 1 to n with exactly one number missing. Here, n is defined as (length of the list + 1). Your task is to determine and print the missing number.

For example, if the array is [3, 7, 1, 2, 8, 4, 5], then the complete sequence should be from 1 to 8, and the missing number is 6.

inputFormat

The input is provided on a single line containing space-separated integers representing the array.

outputFormat

Output the missing number as a single integer on a line by itself.

## sample
3 7 1 2 8 4 5
6