Participating in math (or similar) competitions is a great EC, but only do it if you’re deeply interested in it. It takes talent and a lot of time to reach meaningful levels. Don’t do it for the sole purpose of college admission. Even IMO/IPhO gold medalists aren’t guaranteed admissions at the most sought-after schools (unlike in the old days).