超绝不知道多少行缺省源
const bool Debug = false;
#define Debug true
#include <cstring>
#include <iostream>
#include <algorithm>
#define endl '\n'
#define int long long
#define inf 0x3f3f3f3f
#define lnf 0x3f3f3f3f3f3f3f3f
#define min(a,b) (a<b?a:b)
#define max(a,b) (a<b?b:a)
#define abs(a) (max(a,-a))
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define PURPLE "\033[35m"
#define BLUE "\033[36m"
#define RESET "\033[0m"
#ifdef Debug
#define Deout(x) cerr<<YELLOW<<"\t[/] "<<#x<<":=:"<<x<<RESET<<endl
#define Deinf(x) cerr<<BLUE<<"\t[*] "<<#x<<RESET<<endl
#define Dejud(x,y) ((x==y)?(cerr<<GREEN<<"\t[+] "<<#x<<":=:"<<x<<" OK:)"<<RESET<<endl):(cerr<<RED<<"\t[-] "<<#x<<":=:"<<x<<" ERROR: need "<<y<<RESET<<endl))
#define Delin() cerr<<PURPLE<<"\n-=--=--=--=--=--=--=--=-\n\n"<<RESET
#endif
#ifndef Debug
#define Deout(x) ;
#define Deinf(x) ;
#define Dejud(x,y) ;
#define Delin() ;
#endif
using namespace std;
namespace IamDZD {
inline void _Npt (int& x) {
x = 0;
int f = 1;
char c = getchar ();
while (! isdigit (c)) {
if (c == '-') {
c = getchar ();
if (isdigit (c)) {
f = -1;
break ;
}
} else {
c = getchar ();
}
}
while (isdigit (c)) {
x = (x << 3) + (x << 1) + c ^ 48;
c = getchar ();
}
x *= f;
}
inline void Input () {}
template <typename... Args>
inline void Input (int* a, int n, Args&... args) {
for (register int i = 1; i <= n; ++ i) {
_Npt (a[i]);
}
Input (args...);
}
template <typename... Args>
inline void Input (string& str, Args&... args) {
str = "";
char c = getchar ();
while (! (isdigit (c) || c <= 'z' && c >= 'a' || c <= 'Z' && c >= 'A')) {
c = getchar ();
}
while (isdigit (c) || c <= 'z' && c >= 'a' || c <= 'Z' && c >= 'A') {
str += c;
c = getchar ();
}
Input (args...);
}
template <typename... Args>
inline void Input (int& x, Args&... args) {
_Npt (x);
Input (args...);
}
template <typename... Args>
inline void Input (char& c, Args&... args) {
c = getchar ();
while (! (isdigit (c) || c <= 'z' && c >= 'a' || c <= 'Z' && c >= 'A')) {
c = getchar ();
}
Input (args...);
}
inline void _Tpt (int x) {
if (x < 0) {
putchar ('-');
x = -x;
}
char cnt = 0, _Wrt[25];
do {
_Wrt[++ cnt] = x % 10;
x /= 10;
} while (x) ;
do {
putchar (_Wrt[cnt] | 48);
-- cnt;
} while (cnt);
putchar (' ');
}
inline void Output () {}
template <typename... Args>
inline void Output (int* a, int n, char c, Args... args) {
for (register int i = 1; i <= n; ++ i) {
_Tpt (a[i]);
putchar (c);
}
Output (args...);
}
template <typename... Args>
inline void Output (int x, Args... args) {
_Tpt (x);
Output (args...);
}
template <typename... Args>
inline void Output (char c, Args... args) {
putchar (c);
Output (args...);
}
template <typename... Args>
inline void Output (string str, Args... args) {
for (char c : str) {
putchar (c);
}
Output (args...);
}
void Main () {
}
}
signed main () {
cin.tie (nullptr) -> ios :: sync_with_stdio (false);
int T = 1;
//cin >> T;
while (T --) {
IamDZD :: Main ();
}
return 0;
}