#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair pii; #define rep(i,n) for(ll i=0;i<(ll)(n);i++) #define all(a) (a).begin(),(a).end() #define pb push_back #define INF (1LL<<59) string bio = "mourennaihasimasenn"; int f(int x){ if(x>0)return 2*x-1; else if(x==0)return 0; else return 2*abs(x)+3; } void g(char ch,int x){ if(x>0){ rep(i,x)cout<>a>>b>>c; if(c==0){ cout<<"ccW"<10000){ cout<10000){ cout<sum){ mini = sum; xd = x; yd = y; } } if(mini>10000)cout<