Greenhouse
The roof of the greenhouse is designed as an equilateral triangle with a side length of N. This roof is segmented into smaller glass panels, each forming an equilateral triangle with a side length of 1, created by lines parallel to the triangle's sides. The vertices of these smaller triangles are secured with bolts. These bolts are numbered sequentially with natural numbers, starting from 1, arranged row by row from the top to the bottom. Within each row, the numbering proceeds from left to right. The panels are numbered in a similar fashion (refer to the figure). If a bolt breaks, all panels connected to it become unstable and may fall. A safety engineer needs to determine which panels are at risk if a specific bolt fails.
Input
Write a program that accepts two integers from the input: the side length of the roof N (1 ≤ N ≤ 65,535), and the bolt number K, which needs to be checked.
Output
The program should output the numbers of the panels that are at risk in ascending order.