あたまじゃありませんでした
atamajārimasendeshita

Noun
Desu Copula

The polite, past negative form of

1. Wasn't thinking.; Wasn't on my mind.

Past/Perfective
Negative
Polite
Terminal Form