Buggy python submission (verdict: Runtime Error):
import numpy as np

N = int(input())

A = np.array(list(map(int, input().split())))
B = np.array(list(map(int, input().split())))

c = np.sort(A) > np.sort(B)
if np.sum(c) != N:
  print("NO")
else:
  print("YES")




Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
import re

a = input()
if re.match('(.*)keyence', a):
  print("YES")
else:
  if re.match('k(.*)eyence', a)
    print("YES")
  else:
    print("NO")


Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
import re

a = input()
if re.match('(.*)keyence', a):
  print("YES")
else:
  if re.match('k(.*)eyence', a)
    print("YES")
  else:
    if re.match('ke(.*)yence', a)
      print("YES")
    else:
      print("NO")


Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
import re

a = input()
if re.match('(.*)keyence', a):
  print("YES")
else:
  if re.match('k(.*)eyence', a)
    print("YES")
  else:
    if re.match('ke(.*)yence', a)
      print("YES")
    else:
      if re.match('key(.*)ence', a)
        print("YES")
      else:
        if re.match('keye(.*)nce', a)
          print("YES")
        else:
          if re.match('keyen(.*)ce', a)
            print("YES")
          else:
            if re.match('keyenc(.*)e', a)
              print("YES")
            else:
              if re.match('keyence(.*)', a)
                print("YES")
              else:
                print("NO")


Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):

import re

a = input()
if re.match('(.*)keyence', a):
  print("YES")
  return
if re.match('k(.*)eyence', a)
  print("YES")
  return

if re.match('ke(.*)yence', a)
  print("YES")
  return

if re.match('key(.*)ence', a)
  print("YES")
  return

if re.match('keye(.*)nce', a)
  print("YES")
  return

if re.match('keyen(.*)ce', a)
  print("YES")
  return

if re.match('keyenc(.*)e', a)
  print("YES")
  return

if re.match('keyence(.*)', a)
  print("YES")
  return

print("NO")


Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(bc)
      if ( d in ll ):
        print("YES")
else:
  print("NO")




Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
l = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in l && b in l && c in l && d in l):
  print("YES")
else:
  print("NO")



Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):

l = [1, 9, 7, 4]

a = int(input())
b = int(input())
c = int(input())
d = int(input())

if ( a in l && b in l && c in l && d in l):
  print("YES")
else:
  print("NO")




Fixed submission:

ll = [1, 9, 7, 4]

a, b, c, d = map(int, input().split())

if ( a in ll ):
  ll.remove(a)
  if ( b in ll ):
    ll.remove(b)
    if ( c in ll ):
      ll.remove(c)
      if ( d in ll ):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")