Finished the first group of problems in Competitive Programming 3.