Problem F ECPC 2013