407195: GYM102697 166 Counting Calories (Easier Version)

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

166. Counting Calories (Easier Version)time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
This problem is worth 20 points.

Over the quarantine season, you decide to watch your weight by limiting yourself to a certain amount of calories a day. In your house, you stocked up on a small variety of foods before the quarantine, and regardless of what time of the day it is, you must choose from these items:

Steak: 500 Cal

Apple: 100 Cal

Bread: 50 Cal

Input

You will be given a number $$$n$$$, denoting the number of calories you have limited yourself to for the day.

$$$n$$$ will be divisible by 50.

Output

Print the minimum amount of articles of food you must consume for the day in order to reach your caloric limit exactly.

ExamplesInput
2350
Output
Steak: 4
Apples: 3
Bread: 1
Input
2500
Output
Steak: 5
Apples: 0
Bread: 0

加入题单

上一题 下一题 算法标签: