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