SP28784 IIITMSTUD - IIITM Student
Description
There are N groups students in IIITM each group numbered 1 to n. The ith group contains a\[i\] number of students.
There are some classroom in IIITM and each classroom has some seats.
All the students of same group have to be in same class and there shouldn't be any seat left.
Input Format
N/A
Output Format
Print all possible sizes of the class room in an increasing order with total number of class rooms in new line.
**Example:**
**Input**
3
2 2 4
**Output**
4 2
8 1