write a go solution for Placeholder for problem C of contest 309. . Output only the code with no comments, explanation, or additional text.