Re-order the following sentence to make it grammatically correct: for the exams had been studying I all month.
I had been studying all month for the exams.
Complete the following task based on the instruction and optional input provided.### Instruction:
Re-order the following sentence to make it grammatically correct: for the exams had been studying I all month.

### Output:
I had been studying all month for the exams.