Solution of phone number encoding task with words from given dictionary.