UVa 10260 - Soundex

10260 - Soundex

 * http://acm.uva.es/p/v102/10260.html

Summary
Given a word determine its sound represented in digits

Explanation

 * Generate a mapping to numbers and figure out what each sound will produce.
 * If the previous letter was the same dont output anything.

Input
KHAWN PFISTER BOBBY

Output
25 1236 11