#T596. 陶陶摘苹果

陶陶摘苹果

Description

Tao Tao's backyard has an apple tree that bears 10 apples every autumn. When the apples are ripe, Tao Tao runs to pick them. She has a 30-centimeter-high stool, which she uses when she can't reach the apples directly with her hands.

Given the heights of the 10 apples above the ground and the maximum height Tao Tao can reach when she stretches her arms, please calculate how many apples she can pick. Assume that if she touches an apple, it will fall.

Input Format

The input consists of two lines. The first line contains 10 integers between 100 and 200 (inclusive), representing the heights of the 10 apples above the ground in centimeters. The integers are separated by spaces. The second line contains a single integer between 100 and 120 (inclusive), representing the maximum height Tao Tao can reach when she stretches her arms.

Output Format

The output consists of a single line containing one integer, which is the number of apples Tao Tao can pick.

100 200 150 140 129 134 167 198 200 111
110
5

翻译结果

CodesOnline

(注:由于"CodesOnline"是一个专有名词或品牌名称,通常遵循不翻译的原则以保持其识别度和一致性。因此,此处采用直接保留原文的处理方式。)