diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -70,7 +70,7 @@
 
 def f(cnt, s0, s1, s2):
     if cnt == 10:
-        return s0 == s[0] and s1 == s[1] and s2 == s[2]
+        return s0 == t[0] and s1 == t[1] and s2 == t[2]
     return f(cnt + 1, s1, s0, s2) or f(cnt + 1, s0, s2, s1) or f(cnt + 1, s2, s1, s0)
 
 
