5966: Cupboard and Balloons

内存限制:256 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:3 通过:3

题目描述

C. Cupboard and Balloons
A girl named Xenia has a cupboard that looks like an arc from ahead. The arc is made of a semicircle with radius r (the cupboard's top) and two walls of height h (the cupboard's sides). The cupboard's depth is r, that is, it looks like a rectangle with base r and height h+r from the sides. The figure below shows what the cupboard looks like (the front view is on the left, the side view is on the right).
 Xenia got lots of balloons for her birthday. The girl hates the mess, so she wants to store the balloons in the cupboard. Luckily, each balloon is a sphere with radius . Help Xenia calculate the maximum number of balloons she can put in her cupboard.
You can say that a balloon is in the cupboard if you can't see any part of the balloon on the left or right view. The balloons in the cupboard can touch each other. It is not allowed to squeeze the balloons or deform them in any way. You can assume that the cupboard's walls are negligibly thin.
Input
The single line contains two integers r,h (1≤r,h≤107).
C、 橱柜和气球
一个叫Xenia的女孩有一个橱柜,从前面看就像一个弧形。弧形由半径为r的半圆(橱柜顶部)和两个高度为h的墙(橱柜侧面)组成。橱柜的深度为r,也就是说,它看起来像一个长方形,底部为r,从侧面看高度为h+r。下图显示了橱柜的外观(前视图在左侧,侧视图在右侧)。
Xenia在生日时收到了很多气球。女孩讨厌这一团糟,所以她想把气球放在柜子里。幸运的是,每个气球都是一个有半径的球体。帮助Xenia计算她能放在橱柜里的气球的最大数量。
如果你在左视图或右视图中看不到气球的任何部分,你可以说气球在橱柜中。橱柜里的气球可以互相接触。不允许以任何方式挤压气球或使其变形。你可以假设橱柜的墙壁薄得可以忽略不计。



Examples
Input
1 1
Output
3
Input
1 2
Output
5
Input
2 1
Output
2 


输入格式

单行包含两个整数r,h(1≤r,h≤107)。

输出格式

打印一个整数–Xenia可以放在橱柜中的气球的最大数量。

输入样例 复制

1 1

输出样例 复制

3