How are surfing events graded?

20/6 – International Surfing Day