vemula, Can you give more details on how the program will treat inputs? (like is it an integer or character). Shoot an email or buzz me I will help you out.