{"raw_statement":[{"iden":"problem statement","content":"There is a sequence $A=(A_0,\\ldots,A_{N-1})$ of length $N$.  \nDetermine if there exists a tuple of integers $(x,y,z,w)$ that satisfies all of the following conditions:\n\n*   $0 \\leq x < y < z < w \\leq N$\n*   $A_x + A_{x+1} + \\ldots + A_{y-1} = P$\n*   $A_y + A_{y+1} + \\ldots + A_{z-1} = Q$\n*   $A_z + A_{z+1} + \\ldots + A_{w-1} = R$"},{"iden":"constraints","content":"*   $3 \\leq N \\leq 2\\times 10^5$\n*   $1 \\leq A_i \\leq 10^9$\n*   $1 \\leq P,Q,R \\leq 10^{15}$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $P$ $Q$ $R$\n$A_0$ $A_1$ $\\ldots$ $A_{N-1}$"},{"iden":"sample input 1","content":"10 5 7 5\n1 3 2 2 2 3 1 4 3 2"},{"iden":"sample output 1","content":"Yes\n\n$(x,y,z,w)=(1,3,6,8)$ satisfies the conditions."},{"iden":"sample input 2","content":"9 100 101 100\n31 41 59 26 53 58 97 93 23"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"7 1 1 1\n1 1 1 1 1 1 1"},{"iden":"sample output 3","content":"Yes"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}