#B3893. Bilibili Coin Donation
Bilibili Coin Donation
Bilibili Coin Donation
On the video sharing website Bilibili, users can donate coins to video creators as a token of encouragement. When a video is re-uploaded from another site, a user can donate at most 1 coin. However, for an original video, the default donation is 2 coins.
If Aya donated coins to x re-uploaded videos and y original videos, determine the total number of coins she donated.
The total coins donated is given by the formula: $$total\ coins = x + 2y$$.
inputFormat
The input consists of a single line containing two integers x
and y
separated by a space, where x
represents the number of re-uploaded videos and y
represents the number of original videos.
outputFormat
Output a single integer representing the total number of coins donated by Aya.
sample
0 0
0