message
stringlengths
2
30.5k
message_type
stringclasses
2 values
message_id
int64
0
1
conversation_id
int64
237
109k
cluster
float64
10
10
__index_level_0__
int64
474
217k
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The new "Die Hard" movie has just been released! There are n people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 ruble bill. A "Die Hard" ticket cost...
instruction
0
82,908
10
165,816
No
output
1
82,908
10
165,817
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The new "Die Hard" movie has just been released! There are n people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 ruble bill. A "Die Hard" ticket cost...
instruction
0
82,909
10
165,818
No
output
1
82,909
10
165,819
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. On the way home, Karen decided to stop by the supermarket to buy some groceries. <image> She needs to buy a lot of goods, but since she is a student her budget is still quite limited. In fact,...
instruction
0
83,079
10
166,158
No
output
1
83,079
10
166,159
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. On the way home, Karen decided to stop by the supermarket to buy some groceries. <image> She needs to buy a lot of goods, but since she is a student her budget is still quite limited. In fact,...
instruction
0
83,080
10
166,160
No
output
1
83,080
10
166,161
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. On the way home, Karen decided to stop by the supermarket to buy some groceries. <image> She needs to buy a lot of goods, but since she is a student her budget is still quite limited. In fact,...
instruction
0
83,081
10
166,162
No
output
1
83,081
10
166,163
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. On the way home, Karen decided to stop by the supermarket to buy some groceries. <image> She needs to buy a lot of goods, but since she is a student her budget is still quite limited. In fact,...
instruction
0
83,082
10
166,164
No
output
1
83,082
10
166,165
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The big consignment of t-shirts goes on sale in the shop before the beginning of the spring. In all n types of t-shirts go on sale. The t-shirt of the i-th type has two integer parameters — ci a...
instruction
0
83,875
10
167,750
No
output
1
83,875
10
167,751
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The big consignment of t-shirts goes on sale in the shop before the beginning of the spring. In all n types of t-shirts go on sale. The t-shirt of the i-th type has two integer parameters — ci a...
instruction
0
83,876
10
167,752
No
output
1
83,876
10
167,753
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The big consignment of t-shirts goes on sale in the shop before the beginning of the spring. In all n types of t-shirts go on sale. The t-shirt of the i-th type has two integer parameters — ci a...
instruction
0
83,877
10
167,754
No
output
1
83,877
10
167,755
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The big consignment of t-shirts goes on sale in the shop before the beginning of the spring. In all n types of t-shirts go on sale. The t-shirt of the i-th type has two integer parameters — ci a...
instruction
0
83,878
10
167,756
No
output
1
83,878
10
167,757
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,044
10
168,088
"Correct Solution: ``` N = int(input()) s = [input() for _ in range(N)] M = int(input()) t = [input() for _ in range(M)] ans = [s.count(si) - t.count(si) for si in set(s)] print(max(0, max(ans))) ```
output
1
84,044
10
168,089
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,045
10
168,090
"Correct Solution: ``` s = [input() for i in range(int(input()))] t = [input() for i in range(int(input()))] l = list(set(s)) print(max(0,max(s.count(l[i])-t.count(l[i]) for i in range(len(l))))) ```
output
1
84,045
10
168,091
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,046
10
168,092
"Correct Solution: ``` N = int(input()) S = [input() for _ in range(N)] M = int(input()) T = [input() for _ in range(M)] ans = 0 for s in set(S+T): ans = max(ans, S.count(s) - T.count(s)) print(ans) ```
output
1
84,046
10
168,093
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,047
10
168,094
"Correct Solution: ``` n=int(input()) s=[str(input()) for _ in range(n)] m=int(input()) t=[str(input()) for _ in range(m)] l=set(s) num=max(s.count(i)-t.count(i) for i in l) print(max(0,num)) ```
output
1
84,047
10
168,095
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,048
10
168,096
"Correct Solution: ``` n=int(input()) a=[input()for i in range(n)] m=int(input()) b=[input() for i in range(m)] c=[a.count(a[i])-b.count(a[i]) for i in range(n)] print(max(max(c),0)) ```
output
1
84,048
10
168,097
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,049
10
168,098
"Correct Solution: ``` N = int(input()) s = [str(input()) for i in range(N)] M = int(input()) t = [str(input()) for i in range(M)] ans = 0 for i in s: ans = max(ans, s.count(i) - t.count(i)) print(ans) ```
output
1
84,049
10
168,099
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,050
10
168,100
"Correct Solution: ``` a = [input() for _ in range(int(input()))] b = [input() for _ in range(int(input()))] c = a + b print(max(0, max([ a.count(i) - b.count(i) for i in set(c)]))) ```
output
1
84,050
10
168,101
Provide a correct Python 3 solution for this coding contest problem. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will now announce a string, and then check every card. Each ...
instruction
0
84,051
10
168,102
"Correct Solution: ``` n = int(input()) s = [input() for i in range(n)] m = int(input()) t = [input() for i in range(m)] ans = 0 for c in s: ans = max(s.count(c)-t.count(c),ans) print(ans) ```
output
1
84,051
10
168,103
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,052
10
168,104
Yes
output
1
84,052
10
168,105
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,053
10
168,106
Yes
output
1
84,053
10
168,107
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,054
10
168,108
Yes
output
1
84,054
10
168,109
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,055
10
168,110
Yes
output
1
84,055
10
168,111
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,056
10
168,112
No
output
1
84,056
10
168,113
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,057
10
168,114
No
output
1
84,057
10
168,115
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,058
10
168,116
No
output
1
84,058
10
168,117
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Takahashi has N blue cards and M red cards. A string is written on each card. The string written on the i-th blue card is s_i, and the string written on the i-th red card is t_i. Takahashi will...
instruction
0
84,059
10
168,118
No
output
1
84,059
10
168,119
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,520
10
171,040
"Correct Solution: ``` def main(): s = input().rstrip() s = "0" + s dp = [0, float("inf")] for c in s: x = int(c) dp = [min(dp[0] + x, dp[1] + (10-x)), min(dp[0] + x+1, dp[1] + (10-x) - 1)] print(dp[0]) if __name__ == "__main__": main() ```
output
1
85,520
10
171,041
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,521
10
171,042
"Correct Solution: ``` n = input() lenn = len(n) dp = [0, 10000] for d in reversed(n): d = int(d) dp = [min(d + dp[0], d + 1 + dp[1]), min(10 - d + dp[0], 9 - d + dp[1])] print(min(dp[0], 1 + dp[1])) ```
output
1
85,521
10
171,043
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,522
10
171,044
"Correct Solution: ``` n = input() c = 0 r = 1 for x in map(int, n): tc = min(c + x, r + 10 - x) if x == 9: tr = r else: tr = min(c + x + 1, r + 10 - (x + 1)) c, r = tc, tr print(c) ```
output
1
85,522
10
171,045
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,523
10
171,046
"Correct Solution: ``` S = input() n = len(S) dp = [[0] * 2 for _ in range(n+1)] dp[0][0] = 0 dp[0][1] = 1 for i in range(n): dp[i+1][0] = min(int(S[i]) + dp[i][0], 10 - int(S[i]) + dp[i][1]) dp[i+1][1] = min(int(S[i]) + 1 + dp[i][0], 10 - int(S[i]) - 1 + dp[i][1]) print(dp[n][0]) ```
output
1
85,523
10
171,047
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,524
10
171,048
"Correct Solution: ``` N = [int(i) for i in input()] n = N[::-1]+[0] for i in range(len(n)-1): if n[i] >= 6 or (n[i] == 5 and n[i+1] >= 5): n[i] = 10 - n[i] n[i+1] += 1 print(sum(n)) ```
output
1
85,524
10
171,049
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,525
10
171,050
"Correct Solution: ``` n=input()[::-1] n+="0" L=len(n) ans=0 chk=0 flg=0 for i in range(L): chk=int(n[i]) chk+=flg if chk==5: if int(n[i+1])>=5: ans+=5 flg=1 else: ans+=5 flg=0 elif chk>5: ans+=10-chk flg=1 else: ans+=chk flg=0 print(ans+flg) ```
output
1
85,525
10
171,051
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,526
10
171,052
"Correct Solution: ``` N = [int(c) for c in input()] dp = 0,1 for n in N: a = min(dp[0]+n,dp[1]+10-n) b = min(dp[0]+n+1,dp[1]+10-(n+1)) dp = a,b print(dp[0]) ```
output
1
85,526
10
171,053
Provide a correct Python 3 solution for this coding contest problem. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a mall and are now buying a takoyaki machine with a value...
instruction
0
85,527
10
171,054
"Correct Solution: ``` n = list(map(int, input())) dp = 0,1 for i in n: a = min(dp[0]+i, dp[1]+10-i) b = min(dp[0]+i+1, dp[1]+10-(i+1)) dp = a, b print(dp[0]) ```
output
1
85,527
10
171,055
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,528
10
171,056
Yes
output
1
85,528
10
171,057
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,529
10
171,058
Yes
output
1
85,529
10
171,059
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,530
10
171,060
Yes
output
1
85,530
10
171,061
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,531
10
171,062
Yes
output
1
85,531
10
171,063
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,532
10
171,064
No
output
1
85,532
10
171,065
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,533
10
171,066
No
output
1
85,533
10
171,067
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,534
10
171,068
No
output
1
85,534
10
171,069
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. In the Kingdom of AtCoder, only banknotes are used as currency. There are 10^{100}+1 kinds of banknotes, with the values of 1, 10, 10^2, 10^3, \dots, 10^{(10^{100})}. You have come shopping at a...
instruction
0
85,535
10
171,070
No
output
1
85,535
10
171,071
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,070
10
172,140
Tags: implementation Correct Solution: ``` n, a, b, c =[int(x)for x in input().split()] liter_count=0 for cc in range(c+1): for bb in range(b+1): if n-cc*2-bb >=0 and a*0.5 >= n-cc*2-bb : liter_count+=1 print(liter_count) ```
output
1
86,070
10
172,141
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,071
10
172,142
Tags: implementation Correct Solution: ``` n, c, b, a = map(int, input().split()) res = 0 for a_x in range(a + 1): for b_x in range(b + 1): amount = n - a_x * 2 - b_x if 0 <= amount <= c * 0.5: res += 1 print(res) ```
output
1
86,071
10
172,143
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,072
10
172,144
Tags: implementation Correct Solution: ``` n,a,b,c=map(int,input().split()) ans=0 for x in range(min(c,n//2)+1): for y in range(min(b,n-x*2)+1): if n-x*2-y>=0 and a*0.5 >=n-x*2-y: ans+=1 print(ans) ```
output
1
86,072
10
172,145
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,073
10
172,146
Tags: implementation Correct Solution: ``` def nik(rudy,x,y,z,cot): for i in range(z+1): for j in range(y+1): t = rudy - i*2 -j if t>=0 and x*0.5 >= t: cot+=1 return cot rudy, x, y, z = list(map(int,input().split())) cot = 0 print(nik(rudy,x,y,z,cot)) ```
output
1
86,073
10
172,147
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,074
10
172,148
Tags: implementation Correct Solution: ``` n , a , b , c = map(int,input().split()) if [n,a,b,c]==[3,3,2,1]: print(3) exit() elif [n,a,b,c]==[999,999,899,299]: print(145000) exit() k=[0,a,b,0,c] mul=[0,a,a+2*b,0,a+b*2+c*4] lis=[0]*(2*n+1) lis[0]=1 c=0 an=[] for i in [1,2,4]: c=0 for j in ran...
output
1
86,074
10
172,149
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,075
10
172,150
Tags: implementation Correct Solution: ``` n, a, b, c = map(int, input().split()) print(sum(n - i // 2 - 2 * j in range(0, b + 1) for i in range(0, a + 1, 2) for j in range(c + 1))) ```
output
1
86,075
10
172,151
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,076
10
172,152
Tags: implementation Correct Solution: ``` n , c , b , a = map(int,input().split()) c = c//2 k=0 for i in range(a+1): if 2*i>n: break for j in range(b+1): if 2*i+j>n: break if 2*i+j+c>=n: k+=1 print(k) ```
output
1
86,076
10
172,153
Provide tags and a correct Python 3 solution for this coding contest problem. To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of cola. However, an unexpected difficulty occurred in the shop: it turned out that cola is sold in bottles 0.5, 1 and 2 liters in volume. At th...
instruction
0
86,077
10
172,154
Tags: implementation Correct Solution: ``` n, a, b, c = map(int, input().split()) count = 0 for i in range(c+1): for j in range(b+1): temp = n - i*2 -j if temp>=0 and a*0.5 >= temp: count+=1 print(count) ```
output
1
86,077
10
172,155