#!/usr/bin/env python3

import subprocess
import sys

# Test all printable ASCII characters
printable = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-{}"

for char in printable:
    result = subprocess.run(
        ["python", "baby.py"],
        input=char,
        capture_output=True,
        text=True,
        timeout=2
    )
    output = result.stdout + result.stderr
    
    # Check if this char doesn't produce "not the flag"  
    if "not the flag" not in output:
        print(f"✓ POTENTIAL: '{char}' - output length: {len(output)}")
    elif len(output) > 800:  # Longer than usual failure message
        print(f"? MAYBE: '{char}' - output length: {len(output)}")

print("\nDone.")
