| I SBC São Paulo Programming Marathon |
|---|
| Закончено |
The São Paulo Zoo does an excellent job feeding its three tigers. One day, however, the amount of food was scarce, there was only an amount $$$W$$$ of food. They didn't know if the remaining quantity was enough to feed them, and now they want to know, given the amount of food that each tiger eats, if the remaining food is sufficient to satisfy their hunger.
The input has one line that contain four numbers, $$$W$$$, $$$A$$$, $$$B$$$, $$$C$$$ $$$(1 \le W, A, B, C \le 1000)$$$ representing, respectively, the remaining food and the amount in grams that each tiger will eat that day.
Print a line with the character 'S' if it is possible to feed the tigers, or 'N' otherwise.
300 100 100 100
S
10 3 4 5
N
| Название |
|---|


