Under construction

Still being built. Things may change

Chips

Time limit2sMemory limit2048 MB

Summary
Given k cans with n chips each, find the minimum and maximum number of minutes that can pass before Vasiliy takes an empty can.
Level

Easy2 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Programmer Vasiliy bought kk cans of chips, with nn chips in each can. He is watching a movie and eating chips. After each minute of the movie, he takes one of the cans and eats a chip from it.

At a certain moment, Vasiliy took one of the cans, but there were no chips left in it. What is the minimum and maximum number of minutes that could have passed since the start of the movie?

Input

The input consists of a single line containing two integers kk and nn separated by a space: the number of cans and the number of chips in each can. (1≤k,n≤501 \leq k, n \leq 50)

Output

Output two integers separated by a space: the minimum and maximum number of minutes that could have passed before Vasiliy took a can with no chips left.

Examples2

  1. Example 1

    Input
    3 4
    
    Expected output
    5 13
    
  2. Example 2

    Input
    49 15
    
    Expected output
    16 736