Page not loading? Try clicking here.
Placeholder

#1041

완전제곱수(하) 1s 64MB

Problems

두 수를 입력 받아서 주어진 범위내의 완전 제곱수를 모두 출력하여라.(제곱수란 1x1 2x2 3x3... 같은 정수를 말한다.)


Input

첫줄에 정수 n과 m을 입력 받는다. (1≤n≤1\,000, n≤m≤10\,000)


Output

제곱수를 한 줄에 모두 출력한다. 만약 제곱수가 없는 경우 0을 출력한다. 제곱수는 작은수부터 차례대로 출력한다.


Example

50 100
64 81 100
You must sign in to write code.