{"trustable":false,"sections":[{"title":"","value":{"format":"PLAIN","content":"One day I asked Saima that how much she loves me. Her answer was “71.43%”. I was surprised as\nwell as shocked by her answer. I could not understand why she didn’t tell 100% and why she told\na particular and peculiar fraction like 71.43. Looking at my surprised, shocked and nervous face she\nburst out laughing and told that she loves me more than any thing in this universe and it was nothing\nbut a silly and funny love calculation. Then she described me the calculation. In this problem you will\nhave to write a program so that any one can calculate love between any two persons very quickly (of\ncourse a very silly game).\n\nRules:\nYou will be given two names. These two names can have white space or some other non-alphabetical\ncharacters like $ \u0026 % etc. But only the alphabets from a to z or A to Z will participate in love\ncalculation. Each alphabet has a particular value. The values are from 1 to 26 in ascending order of\nthe alphabets. It’s like this, a \u003d 1, b \u003d 2, c \u003d 3, ..., z \u003d 26. Both upper case and lower case holds the\nsame values. Then make the sum of these numbers until it comes in one digit. [For example, consider\na name ‘bcz’. Here, b \u003d 2, c \u003d 3 and z \u003d 26. So, the sum is (2+3+26) \u003d 31 \u003d (3+1) \u003d 4.] Then the\nratio of these two numbers in percentage will be the result.\nRemember: Result can not be more than 100% . Take the ratio carefully to avoid this problem.\n\n\nInput:\n\nYour input will be two names. Each name holds not more than 25 characters. End of file will indicate\nthe end of input.\n\n\nOutput:\n\nFor each pair of names your program will have to calculate the love between those two persons and\ngive the result as output. In result two digits to be displayed after the decimal point. All the results\nmust be in new lines.\n\n\nSample Input:\n\nsaima\nshanto\nPakistan\nIndia\nUSA\nUSSR\n\n\nSample Output:\n\n71.43 %\n100.00 %\n100.00 %"}}]}