Buggy python submission (verdict: Runtime Error):
i = input()

acc = 0
for j in range(len(i)//2):
	acc+=9*(10**(2*j))

if len(i)%2==0:
	print(acc)
else:
	addition = int(i[1:])+1 + (int(i[0])-1)*10**(len(i)-1)
	print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

if int(i) < 0:
  print("0")
else:

  acc = 0
  for j in range(len(i)//2):
    acc+=9*(10**(2*j))

  if len(i)%2==0:
    print(acc)
  else:
    addition = int(i[1:])+1
    print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

if int(i)<0:
 	print("0")
else:
	acc = 0
	for j in range(len(i)//2):
		acc+=9*(10**(2*j))

	if len(i)%2==0:
		print(acc)
	else:
 		addition = int(i[1:])+1
		print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

if int(i)<0:
  print("0")
  return

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:
  addition = int(i[1:])+1
  print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

if int(i)<0:
  print("0")

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:
  addition = int(i[1:])+1
  print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:
  addition = int(i[1:])+1
  print(acc+addition)

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)

Buggy python submission (verdict: Runtime Error):
i = input()

acc_num = 0
for i in range(len(i)//2):
  acc+=9*(10**(2*i))

if len(i)%2==0:
  print(acc)
else:
  addition = int(i[1:])+1
  print(acc+addition)
 

Fixed submission:
i = input()

acc = 0
for j in range(len(i)//2):
  acc+=9*(10**(2*j))

if len(i)%2==0:
  print(acc)
else:

  addition = (int(i[0])-1)*10**(len(i)-1)+1
  if len(i)>1:
    addition += int(i[1:])
  print(acc+addition)