#include "testlib.h" using ll = long long; const ll L_MAX = 1e18, N_MAX = 10; int main(){ registerValidation(); const ll L = inf.readLong(1, L_MAX); inf.readSpace(); const ll N = inf.readLong(1, N_MAX); inf.readSpace(); const ll M = inf.readLong(0, N); inf.readEoln(); const auto K = inf.readLongs(M, 1, N); inf.readEoln(); inf.readEof(); }