Forgetting Ata Chonantanu

If you forgot to say ata chonantanu after Shabbat (or Jewish festivals), you do not need to repeat the amida. But, if you then ate food before saying havdala, you must repeat the amida including ata chonantanu.