10340

Problem ID: 10340

The length of the string and substring in the judge's input is not greater than 1,000,000.