//发誓2026CSP-j/s 之前不写万能头#include <bits/stdc++.h>//反悔了using std::cin;
using std::cout;
using std::endl;
using std::ios;
using std::map;
using std::string;
using std::vector;
using std::min;
using std::max;
#define i128 __int128
#define u128 unsigned __int128
typedef long long i64;
typedef unsigned long long u64;
typedef int i32;
typedef unsigned u32;
typedef short i16;
typedef unsigned short u16;
typedef bool tf;
#define PII pair<int , int>#define vec vector<int>#define st string
#define mp map<int,int>#define undm unordered_map<int,int>#define unds unordered_set<int,int>#define sta stack<int>#define que queue<int>#define deq deque<int>#define lst list<int>#define getl getline
#define rep(i,j,n) for(i32 i = j; i <= n; i++)
#define pre(i,j,n) for(i32 i = n; i >= j; i--)
#define P 1e9+7#define mod 998244353#define whi(t) while ( t-- )
bool cmp(const i32 &x, const i32 &y) {
return x > y;
}
i32 n, m, a[1001], v[1001], w[1001], f[1001][1001];
vec c[100001];
inline void read(i32& n) {//快读
n = 0;
i32 f = 1;
char c = getchar();
for (; c < '0' || c > '9'; c = getchar())
if (c == '-')
f = -1;
for (; c >= '0' && c <= '9'; c = getchar())
n = n * 10 + c - '0';
n *= f;
}
inline void write(i32 n) {//快写if (n < 0)
putchar('-'), n *= -1;
if (n > 9)
write(n / 10);
putchar(n % 10 + '0');
}//发誓冲预编译指令榜一int main() {
//do anything
}