I will never understand the algorithm of this sub lol

6