AmeriDarts is a dangerous but full of glamour. Mr.cai wants to have a try.
The rule is simple:throw some boomerangs in a line from left to right as quickly as you can. You are asked to throw twice, first time throw A red boomerangs, second time throw B blue boomerangs. Your score is to calculate the shortest length of blue and red boomerang. This rule seems strange? so am I.
For each testcase, output the shortest length between red and blue boomerang in a single line.