SF students attend math contest