#!/usr/bin/env python3
"""
Trim removes leading/trailing whitespace from a string passed on stdin.

Usage:

    $ echo "  hello world " | trim
    hello world

"""

import sys


if __name__ == '__main__':
    sys.stdout.write(sys.stdin.read().strip())
