The operations are such that after all additions the array won't have numbers that would exceed 10^{4}
这句未翻译