A. [Beginner-05]考不死你

    Type: Default 1000ms 32MiB

[Beginner-05]考不死你

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

@把他的化学老师逼疯了。

Description

他的化学老师梅花K决定为@制定一个特殊的考试规则,只要@考不到 mm 分他就需要一直考下去,直到他的分数 nmn \ge m 才可以停下来。
@的好友@拜托你写一个程序,记录他考试考了多少次才通过(含最后一次),这样就可以正大光明地嘲笑他了。

Format

Input

两行。 第一行一个数据 mm 表示基准分数;
第二行若干个数据,用空格分开,其中包含了至少一个 nmn \ge m ,你只需要读到符合条件的 nn 就可以输出答案了。

Output

一行,输出次数 TT

Samples

5
1 1 1 1 1 1 1 1 1 1 1 5 1 1 6 1
12

样例解释

12个数据5满足大于等于基准分数,则停止读入输出次数12