ねんではありませんでした
nendewārimasendeshita

Noun
Desu Copula

The polite, past negative form of

1. Was not thinking.; Did not remember.

Past/Perfective
Negative
Polite
Formal Register