// _/ _/ _/_/_/ _/ //_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/ // _/ _/ _/ _/ _/ _/ _/_/_/ _/ //_/ _/ _/ _/ _/ _/ _/ _/ _/ // _/_/ _/_/ _/_/ _/_/ _/_/ _/ #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int MOD=1e9+7; const int inf=1e9; const ll INF=1e18; const double pi=3.1415926535897932384626433832; int main() { cin.tie(0),cout.tie(0); ios::sync_with_stdio(false); int n; string s[200005]={},t[200005]={}; cin >> n; map m; for(int i=0; i> s[i] >> t[i]; m[s[i]]=1; } for(int i=0; i