Spidey Distance

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Consider a 2D plane of points with integer coordinates. The Taxi-cab Distance between two points is a measure of the shortest path between the points where movement is restricted to only horizontal and vertical paths, similar to following the lines on traditional graph paper. Each point connects to exactly four others, and each is one unit away.

The Spidey Distance is a similar measure of the shortest path, but allows movement horizontally, vertically, or along diagonal paths. Horizontal and vertical points are separated by one unit, but diagonal points are 1.51.5 units away. Thus, each point connects to eight other points, four of which are one unit away and four of which are 1.51.5 units away.

Write a program to compute the fraction of the number of points reachable via a given taxi-cab distance from a point, within an area defined by a spidey distance around that point.

입력

The single line of input contains two integers tt and ss (0t,s1060 \le t,s \le 10^6), where tt is a taxi-cab distance, and ss is a spidey distance.

출력

Output a fraction in the form nn/dd, which is the fraction of points within the given spidey distance that can also be reached within the given taxi-cab distance. Output this fraction reduced to lowest form. If d=1d=1 only output nn. Do not output any spaces around the //.