by using the line which provided i got output as follows:
Your code is very hard to follow. Can I suggest you please:
Place comments in your code to help explain what you are trying to accomplish and what you think each chunk of code is doing
Use variable names in place of your long string concatenations to make it more readable
Use in-line comment for each variable name to help explain what the variable represents
This will not only help us help you, it will help you understand your own code better. When you are new at programming, it's very difficult to keep track of what you are trying to do and it is easy to get lost. Comments and liberal use of variables will help you out a great deal.