David Phillips1 is an American civil engineer and professor at the University of California (Davis, USA). He is best known as The Pudding Guy for accumulating many frequent-flyer miles by taking advantage of a promotion by Healthy Choice2 in 1999.

Phillips was pushing his shopping cart down the frozen-food aisle of his local supermarket when a promotion on a Healthy Choice frozen entree caught his eye. The company was offering frequent-flyer miles to customers who bought its products and submitted the UPCs3 back to the company. The details of the promotion included a bonus if the UPCs were mailed during the month of May 1999 (the mileage earned would double from 500 miles to 1000 miles for every 10 UPCs submitted). Phillips calculated that the return on a mail-in food promotion outweighed the price of the Healthy Choice frozen entrees, which were selling for $2.

A few aisles away Phillips found boxes containing four Healthy Choice soup cans at 70 dollar cents. Because he did not need a freezer to store the soups, he immediately decided to purchase 200 boxes of soup cans. At home he first had some trouble explaining the hoarding behaviour to his wife, but during a subsequent visit to the supermarket they discovered together an aisle display of Healthy Choice Pudding. Normally, the pudding was sold in 4-cup packs, but the display had been intended to introduce the new pudding and the single sample cups — originally 39 cents — were on sale at just 25 cents each! A 25-cent pudding having its own barcode would thus bring 100 miles. Over the next few weeks he purchased a total of 12,000 pudding cups, claiming he was stocking up for Y2K4.

pudding
View on the garage where David Phillips — aka The Pudding Guy — was storing his cups of pudding.

Phillips and his wife had thus spent $3,140 in total for 800 soup cans and 12,000 pudding cups, but they had a problem. Not only could the family never consume this much soup and pudding, but more important they would not be able to remove the UPCs before the double certificate offer expired. After giving it some thought they enlisted the Salvation Army5 to help them peel off the UPC codes, in exchange for donating the pudding. He then mailed his submission to Healthy Choice, and to their credit they awarded him 1.25 million frequent-flyer miles — enough for 31 round trips to Europe, 42 to Hawaii, 21 to Australia, or 50 anywhere in the United States.

There's no downside. Phillips also got Advantage Gold status for life with American Airlines, which brings a special reservations number, priority boarding, upgrades and bonus miles. And he got an $815 tax write off for donating the soup and the pudding.

Input

The following four numbers, each on a separate line:

Output

A sentence describing the amount in dollars spent by Phillips to purchase all items of the product and the number of frequent-flyer miles he earned with this purchase. Use the output as given in the examples below as a template to format the sentence. The amount of money spent should be output as a floating point number and the number of frequent-flyer miles received as an integer.

Example

Input:

200
0.70
12
550

Output:

Phillips spent $140.0 for 8800 frequent-flyer miles.

Example

Input:

12000
0.25
10
1000

Output:

Phillips spent $3000.0 for 1200000 frequent-flyer miles.