Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 779 Bytes

File metadata and controls

21 lines (14 loc) · 779 Bytes

Candles

It is almost Hanukkah and the store in your town is completely out of candles! You decide to place an order online, and you talk to your friends to see who else needs candles. How many candles should you order in total for the holiday?

Task

Determine how many candles you need to order based on how many friends ask to join your order (each friend will need 9 candles).

Input Format

An integer that represents the number of friends that ask to order candles with you.

Output Format

An integer that represents the total number of candles that you need to order.

Sample Input

4

Sample Output

45

Explanation

If four of your friends ask you to order their candles for them, you will need 9 for each of them, and 9 for yourself. That's 45.