ZhenlongDai/ACPR huggingface dataset:
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print("Yes") if int(n/100)==n%19 else print("No")

Failing test case input:
808

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
print("Yes") if int(n/100)==n%10 else print("No")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if n[0] == n[2]:
    print("yes")
else:
    print("no")


Failing test case input:
496

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = input()
if n[0] == n[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = input().split()
N1 = list(reversed(N))
if N == N1:
    print("Yes")
else:
    print("No")

Failing test case input:
665

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()

N1 = N[2]+N[1]+N[0]
if N == N1:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(input().split())
if x == x.reverse():
    print("Yes")
else:
    print("No")


Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
x = list(input())
y = list(reversed(x))
if x == y:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(input())
M = N.sort()
if N == M :
    print('Yes')
else :
    print('No')

Failing test case input:
515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(input())
a = ''.join(N)
N.reverse()
b = ''.join(N)
if a == b :
    print('Yes')
else :
    print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
print('Yes' if n[0]==n[2] else 'no')

Failing test case input:
1035

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n=input()
print('Yes' if n[0]==n[2] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def resolve():
    l = input()
    print(l)
    print(l[::-1])
    if l == l[::-1]:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    resolve()

Failing test case input:
936

Expected output:
No


Actual output:
936
639
No


Fixed submission (verdict: Accepted):
def resolve():
    l = input()
    if l == l[::-1]:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    resolve()

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0]==n[2] and n[0]!=n[1]:
  print('Yes')
else:
  print('No')


Failing test case input:
666

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if n[0]==n[2]:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=(input())
if N[0]==N[2]:
    print ('YES')
else:
    print ('NO')

Failing test case input:
1681

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=(input())
if N[0]==N[2]:
    print ('Yes')
else:
    print ('No')
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print('YES' if n[0]==n[2] else 'NO')

Failing test case input:
936

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
print('Yes' if n[0]==n[2] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
print("YES" if n[0]==n[-1] else "NO")

Failing test case input:
731

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=input()
print("Yes" if n[0]==n[2] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=list(input())
if n==n[::-1]:
    print("YES")
else:
    print("NO")


Failing test case input:
808

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n=list(input())
if n==n[::-1]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print("Yes" if n[0] == n[2] else "no")

Failing test case input:
936

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = input()
print("Yes" if n[0] == n[2] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==n[2]:
  print('Yes')
print('No')

Failing test case input:
262

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
n=input()
if n[0]==n[2]:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=str(input())
aa =sorted(a,reverse =True)
print("Yes" if a==aa else "No")

Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=str(input())
aa =a[-1::-1]
print("Yes" if a==aa else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

if N[0] == N[2]:print("yes")
else:print("no")


Failing test case input:
304

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = input()

if N[0] == N[2]:print("Yes")
else:print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=input()
y=list(x)
if y[0]==y[2]:
    print("yes")
else:
    print("No")

Failing test case input:
262

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
x=input()
y=list(x)
if y[0]==y[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num=int(input())

if num%100==num:
    print("YES")
else:
    print("NO")

Failing test case input:
1035

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
num=input()

if num[0]==num[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = str(input())
m = n[::-1]
if n == m:
  print("Yes")
else:
  print("NO")

Failing test case input:
1293

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = str(input())
m = n[::-1]
if n == m:
  print("Yes")
else:
  print("No")
Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
print("Yes" if n == reversed(n) else "No")

Failing test case input:
262

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
print("Yes" if n == n[::-1] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = str(input())
if int(n[2]+n[1]+n[0]) == int(n):
  print('Yes')
else:
  print('NO')

Failing test case input:
681

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = str(input())
if int(n[2]+n[1]+n[0]) == int(n):
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s == reversed(s):
    print("Yes")
else:
    print("No")


Failing test case input:
515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s == s[::-1]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



input_num = input()
input_len = len(input_num)
input_lis = list(input_num)
rvrsd_lis = list(reversed(input_lis))
flag = 0

for i in range(input_len):
    if input_lis[i] != rvrsd_lis[i]:
        flag = 1
        print("No")
        break

if flag == 0:
    print("yes")


Failing test case input:
515

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):



input_num = input()
input_len = len(input_num)
input_lis = list(input_num)
rvrsd_lis = list(reversed(input_lis))
flag = 0




for i in range(input_len):
    
    
    if input_lis[i] != rvrsd_lis[i]:
        flag = 1
        print("No")
        break

if flag == 0:
    print("Yes")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if a[1] == a[2]:
  print('Yes')
else:
  print('No')

Failing test case input:
1002

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = input()
if a[0] == a[2]:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=str(input())
print("YES" if s[0]==s[2] else "No")

Failing test case input:
808

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s=input()
print("Yes" if s[0]==s[2] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(input())
if n == reversed(n):
    print('Yes')
else:
    print('No')

Failing test case input:
262

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
if n == list(reversed(n)):
    print('Yes')
else:
    print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if(n[0]==n[2]):
    print("YES")
else :
    print("NO")

Failing test case input:
1986

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if(n[0]==n[2]):
    print("Yes")
else :
    print("No")
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if int(N) == int(N[-1]):
  print('Yes')
else:
  print('No')

Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if int(N) == int(N[::-1]):
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()

re_n = reversed(n)
if n == re_n:
  print('Yes')
else:
  print('No')

Failing test case input:
262

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()

if n[0] == n[2]:
    print('Yes')
else:
    print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0] == s[1]:
  print("Yes")
else:
  print("No")

Failing test case input:
665

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
if s[0] == s[2]:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
kaibun = str(input())
print(kaibun)
print(kaibun[::-1])
if kaibun == kaibun[::-1]:
	print('Yes')
else:
	print('No')

Failing test case input:
278

Expected output:
No


Actual output:
278
872
No


Fixed submission (verdict: Accepted):
kaibun = str(input())


if kaibun == kaibun[::-1]:
	print('Yes')
else:
	print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

n = stdin.readline().rstrip()
print('Yes' if n == reversed(n) else 'No')

Failing test case input:
757

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
from sys import stdin

n = stdin.readline().rstrip()
print('Yes' if n == ''.join(reversed(n)) else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] == N[2]:
    print("yes")
else:
    print("no")

Failing test case input:
2534

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = input()
if N[0] == N[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n_str = input()
n_list = list(n_str)
n_list_reverse = n_list
n_list_reverse.reverse()
if n_list == n_list_reverse:
    print("Yes")
else:
    print("No")

Failing test case input:
1865

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n_str = input()
n_list = list(n_str)
n_list_reverse = list(n_str)
n_list_reverse.reverse()
if n_list == n_list_reverse:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num=input()

if num[0]==num[2]:
    print("YES")
else:
    print("NO")

Failing test case input:
486

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
num=input()

if num[0]==num[2]:
    print("Yes")
else:
    print("No")
Problem: p03631
Buggy submission (Python (2.7.6), verdict: Wrong Answer):
N = str(input())
start = 0
end = len(N) - 1
result = True

while start < end: 
    if N[start] == N[end]: 
        start += 1
        end -= 1
    else:
        result = False
        break
print(result)


Failing test case input:
1681

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
N = str(input())
start = 0
end = len(N) - 1
result = True

while start < end: 
    if N[start] == N[end]: 
        start += 1
        end -= 1
    else:
        result = False
        break

if result:
	print("Yes")
else:
	print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N =str(input())
if N[0]==N[1]:
  print("Yes")
else:
  print("No")

Failing test case input:
665

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N =str(input())
if N[0]==N[2]:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] == N[1]:
    print("Yes")
else:
    print("No")


Failing test case input:
443

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()
if N[0] == N[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(input())
s = n.copy()
print("Yes" if n==s.reverse() else "No")

Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
s = n.copy()
s.reverse()
print("Yes" if n==s else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
rev_a = reversed(a)

if a == rev_a:
    print("Yes")
else:
    print("No")

Failing test case input:
757

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = list(input())
rev_a = list(a)
rev_a.reverse()

if a == rev_a:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s=list(input())
t=reversed(s)
if s==t:
  print("Yes")
else:
  print("No")

Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
from copy import deepcopy as dp
s=list(input())
t=dp(s)
s.reverse()
if s==t:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = list(input())
s_rev = reversed(s)
if s == s_rev:
    print("Yes")
else:
    print("No")

Failing test case input:
808

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
s_rev = s[::-1]
if s == s_rev:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
print("YES" if a[0] == a[2] else "NO")

Failing test case input:
1190

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a = input()
print("Yes" if a[0] == a[2] else "No")
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print('Yes' if n[0] == n[1] else 'No')

Failing test case input:
808

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
print('Yes' if n[0] == n[2] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = str(input())
m = n[::-1]
print(n)
print(m)
if n == m:
    print("Yes")
else:
    print("No")


Failing test case input:
262

Expected output:
Yes


Actual output:
262
262
Yes


Fixed submission (verdict: Accepted):
n = str(input())
m = n[::-1]
if n == m:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
import sys
for i in range(len(n)-1):
    if n[i] != n[i+1]:
        print('No')
        sys.exit(0)

print('Yes')


Failing test case input:
262

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
import sys
for i in range(len(n)
    if n[i] != n[len(n)-1-i]:
        print('No')
        sys.exit(0)

print('Yes')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=input()
if N[::-1]==N:
  print('YES')
else:
  print('NO')

Failing test case input:
558

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=input()
if N[::-1]==N:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
print("YES" if s[0]==s[2] else "No")

Failing test case input:
515

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s=input()
print("Yes" if s[0]==s[2] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(input())
print(x)
y = list(reversed(x))
print(y)
if x == y:
    print("Yes")
else:
    print("No")


Failing test case input:
1865

Expected output:
No


Actual output:
['1', '8', '6', '5']
['5', '6', '8', '1']
No


Fixed submission (verdict: Accepted):
x = list(input())
y = list(reversed(x))
if x == y:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=input()
if(N[0]==N[1]):
  print("Yes")
else:
  print("No")

Failing test case input:
1120

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N=input()
if(N[0]==N[2]):
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print("YES" if s==s[::-1] else "NO")

Failing test case input:
558

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
print("Yes" if s==s[::-1] else "No")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = reversed(a)
print("Yes" if a == b else "No")

Failing test case input:
808

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
print("Yes" if a == a[::-1] else "No")
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
print("YES" if a[::-1]==a else "NO")

Failing test case input:
1986

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a=input()
print("Yes" if a[::-1]==a else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num=int(input())

if num%10==round(num/100):
    print("YES")
else:
    print("NO")

Failing test case input:
278

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
num=input()

if num[0]==num[2]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
print('Yes' if s[0]==s[1]==s[2] else 'No')

Failing test case input:
515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
print('Yes' if s[0]==s[2] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0] == n[1]:
  print('Yes')
else:
  print('No')

Failing test case input:
443

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = input()
if n[0] == n[2]:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input().split()
if N[0] == N[-1]:
    print("Yes")
else:
    print("No")


Failing test case input:
1190

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input().strip()
a = int(N)
b = int(N[::-1])
if a == b:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=input()
print('YES' if N==N[::-1] else 'NO')

Failing test case input:
262

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N=input()
print('Yes' if N==N[::-1] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
x = n[::-1]
if n == x:
    print("YES")
else:
    print("NO")


Failing test case input:
2815

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if n == n[::-1]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n=input()
if n[0]==n[1]:
  print("Yes")
else:
  print("No")

Failing test case input:
559

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=input()
if n[0]==n[2]:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

top = N[0]
bottom = N[2]

if top == bottom:
    print('YES')
else:
    print('NO')

Failing test case input:
559

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()

top = N[0]
bottom = N[2]

if top == bottom:
    print('Yes')
else:
    print('No')
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def resolve():
    n = input()
    print("Yes" if reversed(n) == n else "No")


if __name__ == "__main__":
    resolve()


Failing test case input:
666

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def resolve():
    n = input()
    print("Yes" if n[::-1] == n else "No")


if __name__ == "__main__":
    resolve()

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(input().split())
if x == reversed(x):
    print("Yes")
else:
    print("No")


Failing test case input:
666

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
x = list(input())
y = list(reversed(x))
if x == y:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def palindromic_number():
    n = input()
    n_reversed = ''.join(list(reversed(n)))
    print(n_reversed)
    if n == n_reversed:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    palindromic_number()


Failing test case input:
666

Expected output:
Yes


Actual output:
666
Yes


Fixed submission (verdict: Accepted):
def palindromic_number():
    n = input()
    n_reversed = ''.join(list(reversed(n)))
    if n == n_reversed:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    palindromic_number()

Problem: p03631
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = input()
print("YES" if N==N[::-1] else "NO")

Failing test case input:
278

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
print("Yes" if N==N[::-1] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input();print('YNeos'[s!=s[::-1]])

Failing test case input:
1293

Expected output:
No


Actual output:
N


Fixed submission (verdict: Accepted):
s=input();print('YNeos'[s!=s[::-1]::2])

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(input())
print(N)
flag=1
for i in range(len(N)):
    if N[i]!=N[-i-1]:
        flag=0
print("Yes" if flag else "No")


Failing test case input:
443

Expected output:
No


Actual output:
['4', '4', '3']
No


Fixed submission (verdict: Accepted):
N=list(input())
flag=1
for i in range(len(N)):
    if N[i]!=N[-i-1]:
        flag=0
print("Yes" if flag else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if(N%100 == N%1):
    print("Yes")
else:
    print("No")


Failing test case input:
515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
if(N
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
K = input()
print("YES" if K[0] == K[2] else "No")

Failing test case input:
646

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n=input()
print("Yes" if n[0]==n[2] else "No")
Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
i = 0
n = 1
time = len(a)
ans = "Yes"
while i < time:
    if a[i] == a[-n]:
        pass
    else:
        ans = "No"
    i += 1
    n -= 1
print(ans)


Failing test case input:
646

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
i = 0
n = 1
time = len(a)
ans = "Yes"
while i < time:
    if a[i] == a[-n]:
        pass
    else:
        ans = "No"
    i += 1
    n += 1
print(ans)

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0] == n[2]:
  print("YES")
else:
  print("NO")

Failing test case input:
1190

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n / 100 == n % 10:
    print('Yes')
else:
    print('No')


Failing test case input:
262

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
if n 
    print('Yes')
else:
    print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

kaibun = str(input())
print(kaibun)
print(kaibun[::-1])
if kaibun == kaibun[::-1]:
	print('Yes')
else:
	print('No')

Failing test case input:
679

Expected output:
No


Actual output:
679
976
No


Fixed submission (verdict: Accepted):
kaibun = str(input())


if kaibun == kaibun[::-1]:
	print('Yes')
else:
	print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n_str = input()
n_list = list(n_str)
if n_list == n_list.reverse():
    print("Yes")
else:
    print("No")

Failing test case input:
515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n_str = input()
n_list = list(n_str)
n_list_reverse = list(n_str)
n_list_reverse.reverse()
if n_list == n_list_reverse:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = str(input())

print('yes' if n[0] == n[2] else 'No')

Failing test case input:
515

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
n = str(input())

print('Yes' if n[0] == n[2] else 'No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()

print("YES" if n[0]==n[2] else "NO")

Failing test case input:
731

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=input()
 
print("Yes" if n[0]==n[2] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(input())
rev_a = a
rev_a.reverse()
if a == rev_a:
    print("Yes")
else:
    print("No")

Failing test case input:
492

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = list(input())
rev_a = list(a)
rev_a.reverse()

if a == rev_a:
    print("Yes")
else:
    print("No")
Problem: p03631
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = input()

n = list(n)
t = list(n)
n.reverse()

if n == t:
  print("yes")
else:
  print("No")

Failing test case input:
515

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
n = input()

n = list(n)
t = list(n)
n.reverse()

if n == t:
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str = input()
print(str == str[-1::-1])

Failing test case input:
443

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
str = input()
print("Yes" if str == str[-1::-1] else "No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if len(N) == len(set(N)):
    print('No')
else:
    print('Yes')


Failing test case input:
1002

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()
l = N[::-1]
if N == l:
    print('Yes')
else:
    print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
a = int(int(n)/100);
c = int(n)%10;
if a == c:
    print("YES")
else :
    print("NO")

Failing test case input:
1120

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
a = int(int(n)/100);
c = int(n)%10;
if a == c:
    print("Yes")
else :
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()

if(n[0] == n[2]):
  print("YES")
else:
  print("NO")

Failing test case input:
1293

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()

if(n[0] == n[2]):
  print("Yes")
else:
  print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
fjd=input()
if fjd[::-1]==fjd:
  print('YES')
else:
  print('NO')

Failing test case input:
666

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N=input()
if N[::-1]==N:
  print('Yes')
else:
  print('No')

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(input())

if n==n[::-1]:
    print("YES")
else:
    print("NO")


Failing test case input:
587

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = list(input())

if n==n[::-1]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = str(input())
if N == N[-1::]:
    print("Yes")
else:
    print("No")

Failing test case input:
808

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())

if N == N[::-1]:
    print("Yes")
else:
    print("No")

Problem: p03631
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()

print("".join(list(reversed(n))))

Failing test case input:
559

Expected output:
No


Actual output:
955


Fixed submission (verdict: Accepted):
n = input()

print("Yes" if n == "".join(list(reversed(n))) else "No")
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b  = map(int,input().split())
ans = 0
for i in range(1,n+1):
  d = i
  s=0
  while d:
    r = d %10
    d = int(d/10)
    s+=r
  if a<=s<=b:
    ans += 1
print(ans)

Failing test case input:
37 2 6

Expected output:
321


Actual output:
19


Fixed submission (verdict: Accepted):
n,a,b  = map(int,input().split())
ans = 0
for i in range(1,n+1):
  d = i
  s = 0
  while d:
    s +=  d % 10
    d = int(d/10)
  if a<=s<=b:
    ans += i
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = list(map(int, input().split()))
res = 0
for i in range(1, n+1):
  sum = int(i/10000) + int(i%10000/1000) + int(i%1000/100) + int(i%100/10) + int(i%10)
  print(i, sum)
  if a <= sum and sum <= b:
    res += i

print(res)

Failing test case input:
010 6 010

Expected output:
30


Actual output:
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 1
30


Fixed submission (verdict: Accepted):
n, a, b = list(map(int, input().split()))
res = 0
for i in range(1, n+1):
  sum = int(i/10000) + int(i%10000/1000) + int(i%1000/100) + int(i%100/10) + int(i%10)
  if a <= sum and sum <= b:
    res += i

print(res)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
count=0
for n in range(1,N+1):
    sumn=0
    strn = str(n)
    for lenn in range(len(strn)):
        if lenn == 0:
            sumn += n%10
        else:

            sumn += int(n/10*lenn)

    if sumn >= A:
        if sumn <= B:
            count+=n
print(count)

Failing test case input:
110 1 011

Expected output:
3949


Actual output:
2794


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
count=0
for n in range(1,N+1):
    sumn=0
    strn = str(n)
    for lenn in range(len(strn)):
        if lenn == 0:
            sumn += n%10
        else:

            sumn += int(n/(10**lenn))%10

    if sumn >= A:
        if sumn <= B:
            count+=n
print(count)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

b = [int(e) for e in input().split()]

list = []
for i in range(b[0]+1):
    if(math.floor(i/1000)<10):
        x=math.floor(i/1000)
    if(math.floor(i/100)<10):
        x=x+math.floor(i/100)
    if(math.floor(i/10)<10):
        x=x+math.floor(i/10)
    x=x+i%10
    
    
    if(x>=b[1] and x<=b[2]):
        list.append(i)

print(sum(list))


Failing test case input:
111 0 001

Expected output:
111


Actual output:
221


Fixed submission (verdict: Accepted):
import math

b = [int(e) for e in input().split()]

list = []
for i in range(b[0]+1):
    x=i
    check = 0
    
    while(True):
        check=check+x%10
        x=math.floor(x/10)
        
        if(x==0):
            break
    if(check>=b[1] and check<=b[2]):
        list.append(i)

print(sum(list))
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  n, a, b = map(int, input().split())
  cnt = 0
  for i in range(1, n+1):
    ans = i
    if a <= ans and ans <= b:
      cnt += i
  print(cnt)
  
if __name__ == '__main__':
  main()

Failing test case input:
100 1 010

Expected output:
2410


Actual output:
55


Fixed submission (verdict: Accepted):
def main():
  n, a, b = map(int, input().split())
  cnt = 0
  for i in range(1, n+1):
    if a <= sum(map(int, list(str(i)))) <= b:
      cnt += i
  print(cnt)
  
if __name__ == '__main__':
  main()

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
ans = 0
for num in range(1, N+1):
  str_num = str(num)
  sum_char = 0
  for char in str_num:
    sum_char += int(char)
  if sum_char >= A and sum_char <= B:
    ans += 1
print(ans)

Failing test case input:
011 4 20

Expected output:
39


Actual output:
6


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
ans = 0
for num in range(1, N+1):
  str_num = str(num)
  sum_char = 0
  for char in str_num:
    sum_char += int(char)
  if sum_char >= A and sum_char <= B:
    ans += int(str_num)
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):




n, a, b  = map(int, input().split())
sum = 0

for i in range(n+1):
    num = i
    if a<=num<=b:
        sum += i
print(sum)

Failing test case input:
100 2 011

Expected output:
2783


Actual output:
65


Fixed submission (verdict: Accepted):




n, a, b  = map(int, input().split())
ans = 0

for i in range(n+1):
    c = sum(list(map(int,str(i))))
    if a<=c<=b:
        ans += i
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())

c = 0
for i in range(N +1):
    if A <= sum( [int(s) for s in str(i)] ) <= B:
        c = c+1
print(c)


Failing test case input:
011 -1 110

Expected output:
66


Actual output:
12


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
c = 0
for i in range(n+1):
    if a <= sum(list(map(int, list(str(i))))) <= b:
        c += i
print(c)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
counter = 0

for i in range(1, n):
    str_i = str(i)
    sum_i = sum(map(int, str_i))
    if a <= sum_i <= b:
        print(i)
        counter += i

print(counter)

Failing test case input:
37 1 3

Expected output:
110


Actual output:
1
2
3
10
11
12
20
21
30
110


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
counter = 0

for i in range(n+1):
    str_i = str(i)
    sum_i = sum(map(int, str_i))
    if a <= sum_i <= b:
        counter += i

print(counter)
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
ans = 0
for i in range(n):
    if a <= sum(list(map(int, list(str(i))))) <= b:
        ans += 1
print(ans)

Failing test case input:
001 1 12

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
    if a <= sum(list(map(int, list(str(i))))) <= b:
        ans += i
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, A, B = map(int,input().split())
ans = 0
arr = []
for y in range(N+1):
	i = y
	while i >= 1:
		arr.append(int(i % 10))
		i /= 10
	if sum(arr) <= B and sum(arr) >= A:
		ans += sum(arr)
		arr = []
	else:
		arr = []

print(ans)


Failing test case input:
37 1 6

Expected output:
332


Actual output:
80


Fixed submission (verdict: Accepted):

N, A, B = map(int,input().split())
ans = 0
arr = []
for y in range(N+1):
	i = y
	while i >= 1:
		arr.append(int(i % 10))
		i /= 10
	if sum(arr) <= B and sum(arr) >= A:
		ans += y
		arr = []
	else:
		arr = []

print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int, input().split())
ret = 0
for i in range(N):
  s = sum([int(c) for c in str(i)])
  if A <= s and s <= B:
    ret += 1
print(ret)


Failing test case input:
101 6 111

Expected output:
4565


Actual output:
79


Fixed submission (verdict: Accepted):
N,A,B = map(int, input().split())
ret = 0
for i in range(N+1):
  s = sum([int(c) for c in str(i)])
  if A <= s and s <= B:
    ret += i
print(ret)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int, input().split())
count = 0
for i in range(N):
  sum_ = 0
  for k in range(len(str(i))):
    sum_ = sum_ + int(str(i)[k])
  if sum_ >= A and sum_ <= B:
    count = count + 1
print(count)

Failing test case input:
110 5 110

Expected output:
5369


Actual output:
91


Fixed submission (verdict: Accepted):
N,A,B=map(int, input().split())
count = 0
for i in range(1,N+1):
  sum_ = 0
  for k in range(len(str(i))):
    sum_ = sum_ + int(str(i)[k])
  if sum_ >= A and sum_ <= B:
    count = count + i
print(count)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
ans = 0
for i in range(1, N+1):
  num = sum([int(z) for z in str(i)])
  if A <= num <= B:
    ans += 1
print(ans)

Failing test case input:
101 6 111

Expected output:
4565


Actual output:
79


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
ans = 0
for i in range(1, N+1):
  num = sum([int(z) for z in str(i)])
  if A <= num <= B:
    ans += i
print(ans)
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y,z = map(int,input().split())
count = 0
for i in range(1,x) :
    LIST = [int(x) for x in list(str(i))]
    if y <=sum(LIST) <=z :
        count +=1       
print(count)

Failing test case input:
37 0 6

Expected output:
332


Actual output:
21


Fixed submission (verdict: Accepted):
x,y,z = map(int,input().split())
count = 0
for i in range(1,x+1) :
    LIST = [int(x) for x in list(str(i))]
    if y <=sum(LIST) <=z :
        count += i       
print(count)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
cnt=sum=0

for i in range(1,n+1):
    for j in list(str(i)):sum+=int(j)
    if a <= sum <= b:cnt+=1

print(cnt)


Failing test case input:
110 5 110

Expected output:
5369


Actual output:
20


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
res=0

for i in range(1,n+1):
    sum=0
    for j in list(str(i)):sum+=int(j)
    if a <= sum <= b:res+=i

print(res)

Problem: p03478
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())

Num = 0
for i in range(N+1):
    List = [int(a) for a in list(str(i))]
    if A <= sum(List) <= B:
        Num += 1

print(Num)


Failing test case input:
20 1 6

Expected output:
116


Actual output:
13


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

Num = 0
for i in range(1, N+1):
    List = [int(a) for a in list(str(i))]
    if A <= sum(List) <= B:
        Num += i

print(Num)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int, input().split())
print(N, A, B)
s = 0
for i in range(1, N+1):
    list_1 = [int(x) for x in list(str(i))]
    k = sum(list_1)
    if k >= A and k <= B:
        s += i
print(s)


Failing test case input:
101 6 111

Expected output:
4565


Actual output:
101 6 111
4565


Fixed submission (verdict: Accepted):
N,A,B = map(int, input().split())
s = 0
for i in range(1, N+1):
    list_1 = [int(x) for x in list(str(i))]
    k = sum(list_1)
    if k >= A and k <= B:
        s += i
print(s)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
count = 0

for i in range(n+1):
    sum = 0
    n_list = list(str(i))
    for j in range(len(n_list)):
        sum += int(n_list[j])
    
    if (sum >= a) and (sum <= b):
        count += 1
    else:
        pass

print(count)

Failing test case input:
101 -1 6

Expected output:
817


Actual output:
30


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
all_sum = 0

for i in range(n+1):
    sum = 0
    n_list = list(str(i))
    for j in range(len(n_list)):
        sum += int(n_list[j])
    
    if (sum >= a) and (sum <= b):
        all_sum += i
    else:
        pass

print(all_sum)
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split()

ans = 0
for i in range(int(a[0])+1):
    i=str(i)
    i.split()
    sum_num=0
    for j in i:
        sum_num=int(j)
    if j>=a[1] and j<=a[2]:
        ans += 1

print(ans)

Failing test case input:
100 2 010

Expected output:
2299


Actual output:
0


Fixed submission (verdict: Accepted):
a = input().split()

ans = 0
for i in range(int(a[0])+1):
    i=str(i)
    i.split()
    sum_num=0
    for j in i:
        sum_num+=int(j)
    if sum_num>=int(a[1]) and sum_num<=int(a[2]):
        ans += int(i)

print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=(int(x) for x in input().split())
c=0
for i in range(n+1):
  d=0
  for j in str(i):
    d+=int(j)
  if a<=d<=b:
    c+=1
print(c)

Failing test case input:
110 3 110

Expected output:
5750


Actual output:
102


Fixed submission (verdict: Accepted):
n,a,b=(int(x) for x in input().split())
c=0
for i in range(n+1):
  d=0
  for j in str(i):
    d+=int(j)
  if a<=d<=b:
    c+=i
print(c)

Problem: p03478
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
  i=str(i)
  cnt=0
  for j in i:
    j=int(j)
    cnt+=j
  if a<=cnt<=b:
    ans+=1
print(ans)

Failing test case input:
101 1 010

Expected output:
2511


Actual output:
65


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
  k=str(i)
  cnt=0
  for j in k:
    j=int(j)
    cnt+=j
  if a<=cnt<=b:
    ans+=i
print(ans)

Problem: p03478
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, A, B = map(int, input().split())

ans = 0
for n in range(1, N+1):
  s = sum(list(map(int, list(str(n)))))
  if A <= s and s <= B: ans += 1
    
print(ans)

Failing test case input:
6 2 5

Expected output:
14


Actual output:
4


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
 
ans = 0
for n in range(1, N+1):
  s = sum(list(map(int, list(str(n)))))
  if A <= s and s <= B: ans += n
    
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().rstrip().split(' '))

def count(n):
  x = str(n)
  sum=0
  for s in x:
    sum+=int(s)
  return sum
    
ans=0
for i in range(1,n+1):
  if(a <= count(i) and count(i) <=b):ans+=1

print(ans)

Failing test case input:
101 3 111

Expected output:
4906


Actual output:
94


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().rstrip().split(' '))

def count(n):
  x = str(n)
  sum=0
  for s in x:
    sum+=int(s)
  return sum
    
ans=0
for i in range(1,n+1):
  if(a <= count(i) and count(i) <=b):ans+=i

print(ans)
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split() ) )
total = 0

def findSumofDigits(n):
  sum = 0
  while n > 0:
    sum += n%10
    n /= 10
  return int(sum)

for i in range(1,int(A[0]+1)):
  temp = findSumofDigits(i)
  if A[1] <= temp <= A[2]:
    total += i

print(int(total))

Failing test case input:
100 2 010

Expected output:
2299


Actual output:
1804


Fixed submission (verdict: Accepted):
A = list(map(int,input().split() ) )
total = 0

def findSumofDigits(n):
  sum = 0
  while n > 0:
    sum += n%10
    n /= 10
    n = int(n)
  return int(sum)

for i in range(1,int(A[0]+1)):
  temp = findSumofDigits(i)
  if (A[1] <= temp) and (temp <= A[2]):
    total += i
print(int(total))

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = [int(i) for i in input().split()]
c = 0
for i in range(1, n+1):
  d=divmod(i, 10)
  if a <= d[0]+d[1] <= b:
    c += i
print(c)

Failing test case input:
110 3 010

Expected output:
3110


Actual output:
2366


Fixed submission (verdict: Accepted):
n, a, b = [int(i) for i in input().split()]
c = 0
for i in range(1, n+1):
  d = [int(j) for j in list(str(i))]
  if a <= sum(d) <= b:
    c += i
print(c)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
cnt=0

for i in range(1,n+1):
    sum=0
    for j in list(str(i)):sum+=int(j)
    if a <= sum <= b:cnt+=1

print(cnt)


Failing test case input:
011 -1 110

Expected output:
66


Actual output:
11


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
res=0

for i in range(1,n+1):
    sum=0
    for j in list(str(i)):sum+=int(j)
    if a <= sum <= b:res+=i

print(res)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
  if a <= sum(map(int,str(i))) <= b:
    ans+=1
print(ans)    

Failing test case input:
4 -2 6

Expected output:
10


Actual output:
4


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
  if a <= sum(map(int,str(i))) <= b:
    ans+=i
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
ssum=0
for i in range(1,N-1):
	listi=[0,0,0,0,0]
	temp=i
	for j in range(5):
		listi[j]=temp%10
		temp=(temp-temp%10)/10
	sumi=sum(listi)
	if(sumi>=A and sumi<=B):
		ssum=ssum+i
print(ssum)

Failing test case input:
001 0 6

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
ssum=0
for i in range(1,N+1):
	listi=[0,0,0,0,0]
	temp=i
	for j in range(5):
		listi[j]=temp%10
		temp=(temp-temp%10)/10
	sumi=sum(listi)
	if(sumi>=A and sumi<=B):
		ssum=ssum+i
print(ssum)
Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
cnt = 0
for i in range(1, N+1):
    if A <= sum(int(x) for x in str(i)) <= B:
        cnt += 1
print(cnt)


Failing test case input:
110 3 110

Expected output:
5750


Actual output:
102


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
cnt = 0
for i in range(1, N+1):
    if A <= sum(int(x) for x in str(i)) <= B:
        cnt += i
print(cnt)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
ans = 0
for i in range(int(N)+1):
    array = list(map(int,list(str(i))))
    print(array)
    if(sum(array)>=A and sum(array)<=B):
        ans += int(i)
print(ans)


Failing test case input:
100 5 12

Expected output:
3036


Actual output:
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[1, 0]
[1, 1]
[1, 2]
[1, 3]
[1, 4]
[1, 5]
[1, 6]
[1, 7]
[1, 8]
[1, 9]
[2, 0]
[2, 1]
[2, 2]
[2, 3]
[2, 4]
[2, 5]
[2, 6]
[2, 7]
[2, 8]
[2, 9]
[3, 0]
[3, 1]
[3, 2]
[3, 3]
[3, 4]
[3, 5]
[3, 6]
[3, 7]
[3, 8]
[3, 9]
[4, 0]
[4, 1]
[4, 2]
[4, 3]
[4, 4]
[4, 5]
[4, 6]
[4, 7]
[4, 8]
[4, 9]
[5, 0]
[5, 1]
[5, 2]
[5, 3]
[5, 4]
[5, 5]
[5, 6]
[5, 7]
[5, 8]
[5, 9]
[6, 0]
[6, 1]
[6, 2]
[6, 3]
[6, 4]
[6, 5]
[6, 6]
[6, 7]
[6, 8]
[6, 9]
[7, 0]
[7, 1]
[7, 2]
[7, 3]
[7, 4]
[7, 5]
[7, 6]
[7, 7]
[7, 8]
[7, 9]
[8, 0]
[8, 1]
[8, 2]
[8, 3]
[8, 4]
[8, 5]
[8, 6]
[8, 7]
[8, 8]
[8, 9]
[9, 0]
[9, 1]
[9, 2]
[9, 3]
[9, 4]
[9, 5]
[9, 6]
[9, 7]
[9, 8]
[9, 9]
[1, 0, 0]
3036


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
ans = 0
for i in range(int(N)+1):
    array = list(map(int,list(str(i))))
    if(sum(array)>=A and sum(array)<=B):
        ans += int(i)
print(ans)

Problem: p03478
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
ans = 0
for i in range(n):
    if a <= sum(list(map(int, list(str(i+1))))) <= b:
        ans += 1
print(ans)

Failing test case input:
37 0 6

Expected output:
332


Actual output:
21


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
    if a <= sum(list(map(int, list(str(i))))) <= b:
        ans += i
print(ans)