#K8271. Game Night Resource Calculator
Game Night Resource Calculator
Game Night Resource Calculator
You are given two integers n and k where n represents the initial number of players in a knockout tournament game night, and k is the number of cards used in each round.
In a knockout tournament, there are exactly \(n-1\) rounds (since each round eliminates one player). In each round, exactly \(k\) cards are used. Additionally, tokens are distributed such that every round contributes one token per player remaining, resulting in a total of \(n+(n-1)=2n-1\) tokens.
Your task is to calculate and output the total number of cards and tokens required for the game night.
inputFormat
The input consists of a single line containing two space-separated integers \(n\) and \(k\), where \(n\) (\(n \geq 2\)) is the number of players, and \(k\) (\(k \geq 1\)) is the number of cards used in each round.
outputFormat
Output two space-separated integers: the total number of cards and the total number of tokens required.
## sample4 3
9 7
</p>