The `N` in "an" is only put when there is a vowel after the word.
Good: "What a non-nice individual."Bad: "What an non-nice individual."
Point being; you fail.