Wylie Coyote is trying to calculate how many hours it takes the Crescent School robotics team to build their robot. Team 610 (Crescent's robotics team) builds a robot in a six-week period between January and February, with each week numbered from . During this time, they have a very rigorous schedule, and they work different hours on weekends and weekdays.
Since there's no pressure, they only begin working on weekends after week , after which they will work hours each weekend. Apart from the weekend, they work hours every week.
Your task is to write a program that calculates how many hours it takes for them to build their robot, which is completed on week 6.
Input Specification
The input will consist of or positive integers.
The first line will contain the single integer . The second line will contain the week on which Team 610 begins working weekends, inclusive . If , Team 610 does not work weekends. If , the third line of input will contain the integer .
Output Specification
The output should be: It takes X hours for Team 610 build a robot.
, where is the number of hours they worked.
Sample Input
2
3
2
Sample Output
It takes 20 hours for Team 610 build a robot.
Explanation
They work 2 hours each week for weeks 1 and 2. Then, they work 2 hours a week and 2 hours per weekend for weeks 3, 4, 5 and 6. In total, they work 20 hours.
Comments
If output is:
You always get WA.
Judges tend to be very strict about wording. Gorav is a hardworking individual who has made some grammatical errors, as we all find ourselves doing from time to time. Please respect his problems.
Problem statement states that they work from week 1 ... 6, but the input is 0 ... 6 inclusive?
The input for can be since if , Team 610 does not work on the weekends.