Codeforces Round 826 (Div. 3) E. Sending a Sequence Over the Network Hints: Sending a Sequence Over the Network Code : Sending a Sequence Over the Network