Ivan's submission of Sign Wave | CodeChef