+#!/usr/bin/env python3
+# Desc: Reads stdin
+# Input: stdin (consumes)
+# Output: stdout (newline delimited)
+# Example: echo -e "foo\nbar\n" | python3 this_script.py
+# Depends: Python 3.10.12
+# Version: 0.0.1
+
+import sys
+
+def read_stdin():
+ """Reads from stdin and outputs to stdout."""
+ lines = []
+ for line in sys.stdin:
+ # Remove trailing newline character
+ line = line.strip()
+ lines.append(line)
+
+ # Print to stdout
+ for line in lines:
+ print(line)
+
+if __name__ == "__main__":
+ read_stdin()