#! /bin/sh

( echo -e "ibase=10\nobase=7" ; tr " \t" "\n" | sed -e "/^$/d"; echo "" ) | 
 BC_LINE_LENGTH=999 bc | rev | tr "0123456" "0125986"
