For the given numbers K, N and M, begin iterating through the various seeds starting from K: (K, K+1, K+2...). In each iteration, use that seed for a random generator and get N random Gaussian numbers using the Random.nextGaussian() method. Output the seed for which all N Gaussian numbers are less than or equal to M.
The input contains numbers K, N, M in a single line.