[a, b] = [int(i) for i in input().split(' ')] res = [] for i in range(int(a**0.5) -1, int(b**0.5) + 1): if a <= i **2 < b: res.append(i) print(res)