#! /usr/bin/python3 import unittest import struct def ri(s): a=str(s)[::-1] if (a[-1] == '-'): a='-' + a[0:-1] a=int(a) try: b=struct.pack('