ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

Ural Regional School Programming Contest 2012

About     Problems     Submit solution     Judge status     Standings
Contest is over

L. Halvah

Time limit: 1.0 second
Memory limit: 64 MB
Ingredients:
2 cups sunflower seeds
1.5 cup flour
0.5 cup sugar
0.25 cup vegetable oil
0.5 cup water
Practice shows that after saving the world one needs to eat a piece of halvah made according to a classical recipe.
Grate sunflower seeds and toast them on a frying pen. Fry flour on a dry skillet, stirring thoroughly until the flour gains a cream color. Then, mix flour and grated seeds well, and grate them together once more. Add oil and mix.
Mix water and sugar in a saucepan and bring to boil. Boil until the sugar dissolves, then pour this syrup over the flour-seeds mix, and mix well until an even consistency is reached. Place in a refrigerator until the halvah turns hard.
In the end you will get 700 grams of halvah.
Calculate how many grams of halvah you will get out of n cups of seeds, if you have infinite amount of other ingredients.

Input

Input contains one integer n — number of cups of seeds that you have (1 ≤ n ≤ 10).

Output

Output one integer — amount of halvah in grams. It is guaranteed that the answer will be an integer.

Sample

inputoutput
1
350