$in = 500;

$out = (0..9,a..z)[int($in/36)] . (0..9,a..z)[$in%36];