#!/usr/bin/env python

import os,sys
pwd = os.path.dirname(__file__) + "/lib"
sys.path.append(pwd)
import common

document=common.parse()
if u'rows' in document:
  document[u'rows']=document[u'rows'][::-1]
json=common.stringify(document)
print json;
