You are currently in legacy mode. Some additional features will be unavailable. We strongly recommend switching to standard mode on a modern browser. Standard mode Hidden

#P1027. 披萨中奖

披萨中奖

题目描述

披萨获得了一张彩票!如果他的彩票号码和中奖号码完全一致,那么他就中奖了。 由于彩票上的号码过多,他不想自己比对,于是披萨把这个简单的任务交给了你。

输入格式

第一行输入一个整数 n(1n2105)n(1 \leq n \leq 2 \cdot 10^5),代表彩票号码。 第二行输入 nn 个整数 Ai(1Ai109)A_i(1 \leq A_i \leq 10^9),代表披萨手里的彩票号码。 第三行输入 nn 个整数 Bi(1Bi109)B_i(1 \leq B_i \leq 10^9),代表中奖号码。

输出格式

如果披萨中奖了,输出YES,否则输出NO

您可以输出任意大小写字母的YESNO,如Yes````No````YeS````nO都会被认定为合法输出。

样例

5
2 4 3 5 6
2 4 3 5 6
YES
3
2 2 2
1 2 2
NO