This page is still under construction.

Parts of this page are still being built. What you see may change.

Betting

Time limit1sMemory limit1024 MB

Summary
Given the percentage a of switch points bet on option one, print the payout ratio x for each option, where the ratio is 1:x.
Level

Easy2 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Switch.tv just unveiled its newest feature: switch betting. Streamers can get their viewers to bet on two options using switch points (patented).

Each viewer bets some number of switch points on one of the two options. The total amount bet by everyone is called the prize pool. The streamer chooses one option as the winner, and the prize pool is split (not necessarily equally) among the viewers who bet on that option. The more you bet on the option, the more of the prize pool you receive. In particular, if you contributed p%p\% of all the bets on one option and that option wins, you receive p%p\% of the total prize pool.

Switch.tv asks you to compute the switch payout ratio for each option. The payout to each viewer is proportional to the switch points they bet, so the ratio tells the team each viewer's winnings.

For example, suppose three viewers take part. Two bet 10 and 30 switch points on option one, and one bets 10 switch points on option two. Option one has 80% of the bets and option two has 20%. If option one wins, the two viewers receive 12.5 and 37.5 switch points, so the payout ratio for option one is 1:1.25. If option two wins, the single viewer receives 50 switch points, so the payout ratio for option two is 1:5.

Given the percentage of total bets on option one, compute the switch payout ratio for both options.

Input

The input consists of one integer aa (0<a<1000 < a < 100), the percentage of switch points bet on option one.

Output

For each option (option one, then option two), print the number xx such that 1:x1:x is the switch payout ratio for that option. An absolute or relative error of at most 10−310^{-3} is accepted.

Examples2

  1. Example 1

    Input
    80
    
    Expected output
    1.2500000000
    5.0000000000
    
  2. Example 2

    Input
    15
    
    Expected output
    6.6666666667
    1.1764705882