2048 - [2009国家集训队]书堆

Input

第一行正整数 N M

Output

一行(有换行符),L,表示水平延伸最远的整数距离 (不大于答案的最大整数)

Examples

Input

样例
#1
Input: 1 100
Output: 49

#2
Input: 2 100
Output: 74

Output

N <= 10^18
数据保证答案 < 10^6
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题