Back to tasks
Cinema tickets
BeginnerPython for kids 路 Lesson 18: Module 1 summary: First steps
Problem Statement
An adult ticket costs 20 zl and a child's 10 zl. The first line holds the number of adults, the second the number of children. Print the cost of all the tickets.
Input Format
Two whole numbers a and b (0..1000), each on its own line.
Output Format
One number - the result.
Examples
Example 1
Input
2 3
Output
70