#include <iostream>
const int limit = 1000000;
int main()
{
int a[ limit ], b[ limit ], c[ limit ];
/* ... */
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgpjb25zdCBpbnQgbGltaXQgPSAxMDAwMDAwOwppbnQgbWFpbigpCnsKICAgIGludCBhWyBsaW1pdCBdLCBiWyBsaW1pdCBdLCBjWyBsaW1pdCBdOwogICAgLyogLi4uICovCiAgICByZXR1cm4gMDsKfQ==