import java.util.Scanner; public class No51 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int d = sc.nextInt(); for (int i = d; i > 0; i--) { double yaruki = w / Math.pow(i, 2); int iYaruki = (int) Math.floor(yaruki); w -= iYaruki; if (i == 1) { System.out.println(iYaruki); } } sc.close(); } }