changed main to type int