Simple Problem

0

0 votes
Hard
Problem

Sidhant and his friends were playing battleship in the math class. Their teacher caught them and she got very angry. She decided to punish the class by giving them a question to solve. This question is very simple. For the following equation,
f(x)=x2 + 2px + q
find the number of real and distinct roots for all 1 ≤ p ≤ b and 1 ≤ q ≤ c
Help the class escape and extra class.

Input

One line containing b and c (1 ≤ b,c ≤ 5000000)

Output

Print one integer which is the required answer

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?