"Hello" is fine for all occasions, even "hi" is almost always acceptable (that is, it's normally OK to use even when you are talking to someone in a formal situation).

"Good...