Consider a program that takes three integer inputs representing the temperatures in Dubai, Moscow, and Hanoi, and then prints the name of the coldest city based on the following conditions:
If a temperature is less than -92°C or greater than 57°C, the city's average temperature is used as the default:
Dubai: 30°C
Moscow: 5°C
Hanoi: 20°C
If two or more cities share the coldest temperature, the program prints "neither".
Your task is to complete the implementation of the City class and the comparison logic in the printColdestCity function of this program.