def piped_in():
 with sys.stdin as stdin:
  if (not stdin.isatty()):
   return stdin.read()
  else:
   return None

def piped_in ( ) : with sys . stdin as stdin : if ( not stdin . isatty ( ) ) : return stdin . read ( ) else : return None
returns piped input via stdin .