#!/usr/bin/perl -w use strict; my$c=sub{$^A=~s~.~~g;formline"@<",($_[!eof 0]);$^A;};my$q="08215E2 580 B1258071258091 0 4 2 0 0 22580C21240282580DE25 816F0C20F02580CA2580 5 1 1A000A 258015258 1342581AF 0C2064 1A41F4 0D611625 81 3C 25 80 C6 258 0D6 0C 2 1E B1F 11A0 2 580421F40A0";my$g=sub{$_=shift;$_=hex('ff')-hex ;sprintf('%02x',$_)};my@data;for$a( 0..15 ){for$b( 0..15 ){push@data ,sprintf'%x%x',$a,$b}}$a=1;my@data2=map{$a=!$a;$a?$_:&$g($_)}@data;$"= "";my$data="@data2"; my $d = sub{m=(.)=while$_=shift;$1};my$f=sub{ (wantarray)?&{pop@_}(pop@_):&{shift@_}(shift@_)};$q=~s[[^\S]]{}g;print chr hex((hex$1<501)?&$f(substr($data,hex$1,2),$d).&$d(substr($data,hex $2,7)):&$f(substr($data,hex$2,4),$c))while$q=~m/(\S{3})(\S\S {2} )/xg;