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