The PDF version of this problem can be downloaded here.
2 3 8 4 42 42
2 0 498467348
Migrated from old NTUJ.
Latin America Regionals 2012