Đếm ngày

View as PDF

Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Luffy có \(A\) viên bi, mỗi ngày bố cho Luffy thêm \(2\) viên bi. Hỏi sau bao nhiêu ngày thì Luffy có nhiều hơn \(B\) viên bi?

Input

  • Dòng đầu tiên chứa một số tự nhiên \(A\) \((1 \leq A \leq 10^{9})\).
  • Dòng thứ hai chứa một số tự nhiên \(B\) \((1 \leq B \leq 10^{9})\).

Output

  • Một số tự nhiên là kết quả của bài toán.

Example

Test 1
Input
3
5
Output
2
Test 2
Input
5
3
Output
0

Comments

There are no comments at the moment.