Input (grade 3): The Emperor gave her the flag as a souvenir.
Output (grade 2): The Emperor gave her the flag as a gift.