CF334B Eight Point Sets

Description

Gerald is very particular to eight point sets. He thinks that any decent eight point set must consist of all pairwise intersections of three distinct integer vertical straight lines and three distinct integer horizontal straight lines, except for the average of these nine points. In other words, there must be three integers $ x_{1},x_{2},x_{3} $ and three more integers $ y_{1},y_{2},y_{3} $ , such that $ x_{1}<x_{2}<x_{3} $ , $ y_{1}<y_{2}<y_{3} $ and the eight point set consists of all points $ (x_{i},y_{j}) $ ( $ 1

Input Format

The input consists of eight lines, the $ i $ -th line contains two space-separated integers $ x_{i} $ and $ y_{i} $ ( $ 0

Output Format

In a single line print word "respectable", if the given set of points corresponds to Gerald's decency rules, and "ugly" otherwise.