#!/usr/bin/python
import re
import sys
print "require(OpenMx)"
print "#################################################"
print "# THIS IS AN AUTOGENERATED FILE"
print "# ANY CHANGES MADE TO THIS FILE WILL NOT BE SAVED"
print "#################################################"
p = re.compile("\.\. code-block:: r.*?\r?\n\r?\n(.+?)\r?\n[ \t]*\r?\n[\w`]", re.DOTALL)
matches = p.finditer(sys.stdin.read())
for match in matches:
	print match.group(1)
