うんではありませんでした
undewārimasendeshita

Noun
Desu Copula

The polite, past negative form of

1. Was not fortunate.; Was not destined.; It wasn't luck.

Past/Perfective
Negative
Polite
Formal Register