がんではありませんでした
gandewārimasendeshita

Noun
Desu Copula

The polite, past negative form of

1. Was not a niche.; Was not a shrine.

Past/Perfective
Negative
Polite
Formal Register