Part of 2017 Grand Duchy of Lithuania
Source: 2017 Grand Duchy of Lithuania, Mathematical Contest p3 (Baltic Way TST)