Program to parse vectors