Limits 1s, 512 MB

When Elias Musk was born, his father's first words were, "My son will be a computer engineer." After completing college, Elias started his B.Sc. in CSE at MIT (Mohanlal Institute of Technology) to pursue his father's dream and his career. During that time, he stayed in the university's dormitory.

One night, his roommate told him that one of the tech giant companies had developed and launched an AI chat-bot, a conversational generative artificial intelligence. This invention could answer with high accuracy and solve complex algorithmic problems. After hearing that, Elias started to panic because it was his final-year project idea.

After conducting some research, he discovered that this invention could not solve simple mathematical problems. So, he decided to modify his project to focus on developing a solution for solving such problems. However, he needed a break to clear his mind, so he decided to go to the rooftop of the dormitory for some fresh air. He was also highly conscious about not wasting time.

He was thinking how much time it would take to reach the rooftop of the building. He knew that the dormitory has NN floors, and he was currently on the KthK^{th} floor. Additionally, there were XX steps between any two floors, and climbing one step took 22 seconds.

You heard about the above incident from one of Elias's friends. Now, write a program to calculate the time Elias will take to reach the rooftop.

Input

The single line of input contains three integers NN, KK and XX— denoting the total number of floors, the floor Elias is on and number of steps on the stairs between any two floors.

1N501 \le N \le 50

1K501\le K \le 50

5X105 \le X \le 10

Output

Output a single integer, the total time to reach the rooftop.

Samples

InputOutput
4 2 5
30

InputOutput
20 12 8
144

Submit

Login to submit.

Statistics

100% Solution Ratio
iffatul_anonEarliest, 11M ago
Tasnuva.1530Fastest, 0.0s
iffatul_anonLightest, 4.9 MB
Sumaiya.4667Shortest, 112B
Toph uses cookies. By continuing you agree to our Cookie Policy.