after bracket sequence Arthur take number theory he get new favorite sequence length n a1a2an consist integer integer k exceed nThis sequence follow property write sum segment consist k consecutive element a1a2aka2a3ak1ank1ank2an number form strictly increase sequencefor example follow sample n5k3a12456 sequence number look follow 12424545671115 mean sequence meet describe property obviously sequence sum nk1 elementssomebody will not replace number arthur sequence question mark number replace replace exactly question mark we need restore sequence meet require property minimize sum ai ai absolute value ai