#include<bits/stdc++.h> #define re register #define int long long
usingnamespace std;
typedef pair<int,int> pii; int ans; int dx[] = {0,0,-1,1}; int dy[] = {-1,1,0,0}; bool w[10]; vector<int> v;
structpoint{ int x,y; }a,b,c;
inlineintread(){ int r = 0,w = 1; char c = getchar(); while (c < '0' || c > '9'){ if (c == '-') w = -1; c = getchar(); } while (c >= '0' && c <= '9'){ r = (r << 3) + (r << 1) + (c ^ 48); c = getchar(); } return r * w; }