Under construction

Still being built. Things may change

Will the Second IUPC Go Well?

Interview

Time limit1sMemory limit128 MB

Summary
Given the pen counts of N members, find the fewest members whose pens total at least M*K, or print STRESS if the total falls short.
Level

Easy3 of 10

Topics
Greedy, Sorting, Array, Implementation
Solved
No attempts yet

Problem

The second Inha University Programming Contest (IUPC) is held on May 28, 2016. Unlike other programming contests, this one is solved by writing code on paper, so every contestant needs a pen. Jeongeun, the president of CTP, wants to hand a pen to each contestant. To save contest budget she borrows the pens from CTP members instead of buying new ones.

CTP has NN members, and no two members carry the same number of pens in their pen case. Returning pens to many people afterwards is a nuisance, so Jeongeun borrows from as few members as possible. When she borrows from a member, she takes every pen that member has.

MM teams enter the contest and each team consists of KK people. Every team member gets one pen, so M×KM \times K pens are needed. Find the smallest number of members Jeongeun has to borrow from in order to collect that many pens.

Input

The first line contains the number of CTP members NN (1≤N≤1,0001 \le N \le 1{,}000).

The second line contains the number of teams MM (1≤M≤1,0001 \le M \le 1{,}000) and the number of members on one team KK (1≤K≤101 \le K \le 10), separated by a space.

The third line contains NN integers separated by spaces, where AA (0≤A≤1000 \le A \le 100) is the number of pens one member has.

Output

Print the smallest number of members Jeongeun has to borrow from, on one line. If there are not enough pens to supply every team member, print STRESS without the quotation marks.

Examples3

  1. Example 1

    Input
    7
    36 3
    9 70 15 13 19 20 11
    
    Expected output
    3
    
  2. Example 2

    Input
    1
    1 1
    1
    
    Expected output
    1
    
  3. Example 3

    Input
    1
    1 1
    0
    
    Expected output
    STRESS