Buggy python submission (verdict: Runtime Error):
import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
 
num_str = input()

lst = []

tmp_sum = 0
tmp = 0
count = 1
out_sum = 0
while True:
  if tmp_sum + 10**10 * count < len(num_str):
      out_sum += sum([int(num_str[i]) for i in range(tmp, 10**10 * count)])
  else:
      out_sum += sum([int(num_str[i]) for i in range(tmp, len(num_str))])
      break
  tmp = 10**10 * count
  count += 1
  tmp_sum += tmp
 
if out_sum%9 == 0:
  print("Yes")
else:
  print("No")










Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)

num_str = input()

num = int(num_str)

num_list = []
# num_list = [int(num_str[i]) for i in range(len(num_str))]

while num>0:
  num_list.append(num%10)
  num //= 10
num_list.reverse()

num_sum = sum(num_list)

if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)

num_str = input()

num_list = [int(num_str[i]) for i in range(len(num_str))]

num_sum = sum(num_list)

if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
import numpy as np
import sys
input = sys.stdin.readline

num_str = input()

num_list = [int(num_str[i]) for i in range(len(num_str))]

num_sum = sum(num_list)

if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
import numpy as np
import sys
input = sys.stdin.readline

num_str = input()

num_list = np.array([int(num_str[i]) for i in range(len(num_str))])

num_sum = np.sum(num_list)

if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Fixed submission:
import numpy as np
import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")