eolymp
bolt
Try our new interface for solving problems
Problems

Cautious judge

Cautious judge

Tomorrow, the football match between two famous teams: Gazmyasom and Neftrybom. The match will take place on the field of length \textbf{L} and width \textbf{W}. The match will be judged a professional football referee in the fourth generation Benjamin Khlebnikov. To be a judge - the responsible and do not always safe to do. Therefore, Benjamin decided to work out some game episodes that occur in tomorrow's game. Consider the situation where player \textbf{A} makes a pass to the player \textbf{B} - that is, passes the ball along the line segment connecting the points in which there are gamblers. On the one hand, the judge should well see what happens during a pass, on the other hand, according to security requirements, the judge can not be too close to the ball. Therefore, during the pass the judge should be located not less than \textbf{r}, and no more than \textbf{R}, from the possible position of the ball. It is assumed that all the time during which the ball moves, the judge standing in one place. Of course, the judge must always be on the game field. \includegraphics{https://static.e-olymp.com/content/2c/2c186ef174a6ec71a310a4163895813a2c244a77.jpg} Since these conditions are quite complex, even an experienced judge is sometimes difficult to determine where it should be in the moment pass. For this reason, Benjamin wants to practice before the game and find those areas where it can be, for different initial conditions. In order to compare your answer with the correct, he needs a program which, given the dimensions of the field, the coordinates of the players and the numbers \textbf{r} and \textbf{R} is the area of those areas of the field, which can be the judge. Help him! \InputFile The first line of the input file are given two positive integers \textbf{L} and \textbf{W} (\textbf{1} ≤ \textbf{L}, \textbf{W} ≤ \textbf{100}) - the length and width of the field. In the second row are integers \textbf{X_A}, \textbf{Y_A}, \textbf{X_B}, \textbf{Y_B} --- the coordinates of the players A and B, respectively. Since the players are on the field, then \textbf{0} ≤ \textbf{X_A}, \textbf{X_B} ≤ \textbf{L}, \textbf{0} ≤ \textbf{Y_A}, \textbf{Y_B} ≤ \textbf{W}. In the third row are integers \textbf{r} and \textbf{R} (\textbf{0} < \textbf{r} < \textbf{R} < \textbf{100}). It is known that \textbf{R} ≤ \textbf{D}, where \textbf{D} - distance between players \textbf{A} and \textbf{B}. \OutputFile The output file output response to a problem with an accuracy of \textbf{10^\{−6\}}.
Time limit 1 second
Memory limit 64 MiB
Input example #1
20 20
5 10 15 10
5 9
Output example #1
13.956675