Korotkevich Gennady, 2539

Unfortunately, only the first part for now. My partner didn't manage to finish his part in time, but I expect him to finish it some time after the deadline.