#!perl -pa use bigint;1while$F[!s/@F|/(0..9,a..z,A)["@F"%37]/e]/=37