The word 'gozaimasu' is a very polite expression and can roughly be translated as “am,” “is,” or “are” in English. The phrase “ohayo” comes from an adjective, “hayai” meaning “early” and it literally means “it's early.” So, “ohayo” can take the polite expression “gozaimasu” after that to say it politely.