from binascii import hexlify, unhexlify
from Crypto.Cipher import AES
picc = "CACDEC6C5455EE52BB1DA40470963113"
myaes = AES.new(16*"\x00", AES.MODE_CBC, 16*"\x00")
okay = myaes.decrypt(unhexlify(picc))
counter=int("0x"+hexlify(okay[10:11])+hexlify(okay[9:10])+hexlify(okay[8:9]),16)
print counter
# your code goes here
ZnJvbSBiaW5hc2NpaSBpbXBvcnQgaGV4bGlmeSwgdW5oZXhsaWZ5CmZyb20gQ3J5cHRvLkNpcGhlciBpbXBvcnQgQUVTCnBpY2MgICA9ICJDQUNERUM2QzU0NTVFRTUyQkIxREE0MDQ3MDk2MzExMyIKbXlhZXMgID0gQUVTLm5ldygxNioiXHgwMCIsIEFFUy5NT0RFX0NCQywgMTYqIlx4MDAiKQpva2F5ICAgPSBteWFlcy5kZWNyeXB0KHVuaGV4bGlmeShwaWNjKSkKY291bnRlcj1pbnQoIjB4IitoZXhsaWZ5KG9rYXlbMTA6MTFdKStoZXhsaWZ5KG9rYXlbOToxMF0pK2hleGxpZnkob2theVs4OjldKSwxNikKcHJpbnQgY291bnRlcgojIHlvdXIgY29kZSBnb2VzIGhlcmU=