Rewrite the following sentence using correct capitalization and punctuation.
last night mary and i went to the movies
Last night, Mary and I went to the movies.
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite the following sentence using correct capitalization and punctuation.

### Input:
last night mary and i went to the movies

### Output:
Last night, Mary and I went to the movies.