This is for programming contest template functions that i need to use