{"problem":{"name":"Same Name","description":{"content":"There are $N$ people. The family name and given name of the $i$\\-th person $(1 \\leq i \\leq N)$ are $S_i$ and $T_i$, respectively. Determine whether there is a pair of people with the same family and g","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc216_b"},"statements":[{"statement_type":"Markdown","content":"There are $N$ people. The family name and given name of the $i$\\-th person $(1 \\leq i \\leq N)$ are $S_i$ and $T_i$, respectively.\nDetermine whether there is a pair of people with the same family and given names. In other words, determine whether there is a pair of integers $(i,j)$ such that $1 \\leq i \\lt j \\leq N$, $S_i=S_j$, and $T_i=T_j$.\n\n## Constraints\n\n*   $2 \\leq N \\leq 1000$\n*   $N$ is an integer.\n*   Each of $S_i$ and $T_i$ is a string of length between $1$ and $10$ (inclusive) consisting of English lowercase letters.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n$S_1$ $T_1$\n$S_2$ $T_2$\n$\\hspace{0.6cm}\\vdots$\n$S_N$ $T_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc216_b","tags":[],"sample_group":[["3\ntanaka taro\nsato hanako\ntanaka taro","Yes\n\nThe first and third persons have the same family and given names."],["3\nsaito ichiro\nsaito jiro\nsaito saburo","No\n\nNo two persons have the same family and given names."],["4\nsypdgidop bkseq\nbajsqz hh\nozjekw mcybmtt\nqfeysvw dbo","No"]],"created_at":"2026-03-03 11:01:14"}}