I need help in C++

What floor are they? Mr. Arbi Cela works in National Post Services. He distributes mails to the people. Sometimes he goes to apartments buildings and has to find out the floor number from the apartment number. Write a program that will find out the floor number from the given data.

Input Specifications: You will be given 3 integer numbers ? n: the number of apartments in this building? m: the number of apartments in every floor? k: starting floor number for the apartmentswhere 0 <= n <= 50, 1 <= m <= 10, -3 <= k <= 5. Then the following line, you will be given n space separated apartment numbers which are between 1 and 1000.

Output Specifications: show n space-separated integers: the floor numbers for every apartment given.