You need to arrange 400 people in a rectangle with a given number of rows (A). Your task is to find out how many columns (B) you can have if each row must be full. If it's not possible to arrange them this way, you should return -1.
Input: 10
Output: 40
Input: 11
Output: -1