The PDF version of this problem can be downloaded here.
3 3 2 1 1000003 3 1 2 1234567891 3 1 1 314159
6 9 6
Migrated from old NTUJ.