{"raw_statement":[{"iden":"problem statement","content":"We have a playlist with $N$ songs numbered $1, \\dots, N$.  \nSong $i$ lasts $A_i$ seconds.\nWhen the playlist is played, song $1$, song $2$, $\\ldots$, and song $N$ play in this order. When song $N$ ends, the playlist repeats itself, starting from song $1$ again. While a song is playing, the next song does not play; when a song ends, the next song starts immediately.\nAt exactly $T$ seconds after the playlist starts playing, which song is playing? Also, how many seconds have passed since the start of that song?  \nThere is no input where the playlist changes songs at exactly $T$ seconds after it starts playing."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^5$\n*   $1 \\leq T \\leq 10^{18}$\n*   $1 \\leq A_i \\leq 10^9$\n*   The playlist does not change songs at exactly $T$ seconds after it starts playing.\n*   All values in the input are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $T$\n$A_1$ $\\ldots$ $A_N$"},{"iden":"sample input 1","content":"3 600\n180 240 120"},{"iden":"sample output 1","content":"1 60\n\nWhen the playlist is played, the following happens. (Assume that it starts playing at time $0$.)\n\n*   From time $0$ to time $180$, song $1$ plays.\n*   From time $180$ to time $420$, song $2$ plays.\n*   From time $420$ to time $540$, song $3$ plays.\n*   From time $540$ to time $720$, song $1$ plays.\n*   From time $720$ to time $960$, song $2$ plays.\n*   $\\qquad\\vdots$\n\nAt time $600$, song $1$ is playing, and $60$ seconds have passed since the start of that song."},{"iden":"sample input 2","content":"3 281\n94 94 94"},{"iden":"sample output 2","content":"3 93"},{"iden":"sample input 3","content":"10 5678912340\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000"},{"iden":"sample output 3","content":"6 678912340"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}