#K12156. Taco Beverage Price Calculator

    ID: 23628 Type: Default 1000ms 256MiB

Taco Beverage Price Calculator

Taco Beverage Price Calculator

You are given the details of a beverage order at Taco cafe. The drink price is computed based on the following formula:

\(\text{Total Price} = 5 + 1.5 \times \text{shots}\ + \,0.5 \text{ (if to-go)}\)

Your task is to read the name of the drink, the number of espresso shots, and whether the drink is to-go, then compute and print its price.

inputFormat

The input is given via standard input (stdin) and consists of three lines:

  • First line: a string representing the drink name (this value is not used in the calculation but provided for completeness).
  • Second line: an integer representing the number of espresso shots.
  • Third line: a string which is either True or False indicating whether the order is to-go.

outputFormat

Print the total price of the drink computed using the formula:

\(\text{Total Price} = 5 + 1.5 \times \text{shots} + 0.5 \text{ (if to-go)}\)

The result should be printed on standard output (stdout) as a number.

## sample
Americano
0
False
5