Raghav lives in Strangeland and studies in a college where it is mandatory to maintain a minimum of 75% attendance in each subject or else you are not allowed to appear for the exam of that subject. Consider the subject AI (Artificial Intelligence) for which the total number of classes held till the present date equals \(X\). Raghav has only attended \(Y\) out of these \(X\) classes. Find minimum how many extra classes should be held so that he is allowed to appear for the AI exam. Assume that he attends all the extra classes.
INPUT FORMAT
-
First line consists of a single integer \(T\) denoting the number of testcases
- Next \(T\) lines each consist of two space separated integers \(X\) and \(Y\) as described above
OUTPUT FORMAT
-
For each testcase output a single integer denoting the answer for that testcase
CONSTRAINTS
-
\(1 \le T \le 10^5\)
-
\(1 \le X \le 10^6\)
- \(0 \le Y \le X\)
SUBTASKS
- For 20 Points : \(1 \le T, X \le 100\)
- For 80 Points : Original Constraints