Ice Rain

Time Limit: 3000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 2620
64-bit integer IO format: %I64d      Java class name: Main

Description

Ice Rain------I was waiting for a girl, or waiting for been addicted to the bitter sea. Love for irrigation in silence. No one considered whether the flowers came out or wither. Love which I am not sure swing left and right. I had no choice but to put my sadness into my heart deeply.

   Yifenfei was waiting for a girl come out, but never.
His love is caught by Lemon Demon. So yifenfei ’s heart is “Da Xue Fen Fei” like his name.
The weather is cold. Ice as quickly as rain dropped. Lemon said to yifenfei, if he can solve his problem which is to calculate the value of , he will release his love.
Unluckily, yifenfei was bored with Number Theory problem, now you, with intelligent, please help him to find yifenfei’s First Love.

Input

Given two integers n, k(1 <= n, k <= 109).

Output

For each n and k, print Ice(n, k) in a single line.

Sample Input

5 4
5 3

Sample Output

5
7

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .