Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

A Girl's Story

By Mesbah · Limits 1s, 512 MB

Meena (Bengali: মীনা) is a fictional character who stars in the South Asian children’s television show Meena.

The show is broadcasted in Bengali, English, Hindi, Nepali, and Urdu. Meena educates the children of South Asia on issues of gender, health, and social inequality through her stories in comic books, animated films (Meena Cartoon), and radio series (affiliated with the BBC). Secondary characters of her stories include her brother Raju and her pet parrot Mithu.

Her adventures include attempting to get an education, having an equal share of food as Raju, and learning about the HIV virus, the right way to birth a baby, and helping people. All of her stories advocate change in social and cultural practices.

Her popularity is due to her not being closely bound to just one country or culture of South Asia, but uniting the common characteristics of them all.

The character of Meena was created by famous Bangladeshi cartoonist Mustofa Monowar and was partly due to UNICEF, an organization that supports the growing educational awareness of South Asia through Meena and her stories. (Source: Wikipedia)

But, today Meena is facing a serious problem.

X year earlier Raju’s age was one-half of Meena’s age. Currently, Meena is Y years old. Now Meena wants to know the current age of Raju. She recently learned about multiplication table. But, she finds this task very hard. So as a good childhood friend of Meena you have to help her today.

Input

The first and only line of input contains two integers. The first integer is X and the second one is Y. You can safely assume that 0 < X ≤ Y ≤ 108.

Output

You have to print the current age of Raju followed by a newline character.

Sample

InputOutput
4 14
9

For every input there exists a positive integer solution.


Discussion
Statistics

96% Solution Ratio

noobboiEarliest, Aug '17

RUET_SDZFastest, 0.0s

mobileLightest, 0 B

aro001Shortest, 21B

Submit

Login to submit