diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -10,6 +10,9 @@
     i_first, i_last = names[i]
     is_first_ok, is_last_ok = True, True
     for j in range(N):
+        if i == j:
+            continue
+
         if i_first in names[j]:
             is_first_ok = False
 
