with open("/dev/fd/0","rb") as f: c=f.read(1) x=y=g=0 while c!=b"": if c==b'\n':y+=1;x=0 else: c=f.read(2) if c==b'\xb6\xa9':print("(%d, %d) is sus"%(y,x));g=1 x+=1 c=f.read(1) if g==0:print("No one is sus")