from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline def answer(): X,A = map(int,input().split()) L = math.floor(math.sqrt(X)) INF = (1<<30) dp = [INF]*(A+1) dp[0] = 0 for i in range(1,A+1): if i