Walk Alone is playing a game recently. In this game, there are

monsters numbered from

to

, the

-th of which has an attack ability of

. Walk Alone is required to kill all of them in order.
To kill a monster, he needs to battle with it. He can battle with the
)
-th monster if and only if all monsters from

to

are killed.
Initially, Walk Alone's attack ability

equals to

. After a battle with the

-th monster, three situations may happen:
-
, he kills the monster. -
, he kills the monster, but his attack ability
may become
with a probability of
. -
, he loses the battle. The monster is still alive, but his attack ability
may become
with a probability of
.
When he loses a battle, he will keep trying until he wins.
Now Walk Alone wants to know the \textbf{expected number of battles} he needs to go through in total.
It can be shown that the answer can always be expressed as an irreducible fraction

, where

and

are integers and

. Output such an integer

that

and

.