n, m = map(int, input().split()) assert(1 <= n <= 160_000) assert(1 <= m and m * m <= n)