AlgoBazaAlgoBaza
Back to tasks

The castle

Beginner

Python for kids 路 Lesson 26: An if inside an if

Problem Statement

Read two numbers: 1 if someone has a ticket (0 if not), and their age. Without a ticket print BRAK BILETU (no ticket). With a ticket print WIEZA (tower) for people aged 12 and over, and OGROD (garden) for younger ones.

Input Format

Two whole numbers: the ticket (0 or 1) and the age (1..100), each on its own line.

Output Format

BRAK BILETU, WIEZA or OGROD.

Examples
Example 1

Input

1
10

Output

OGROD
Example 2

Input

1
14

Output

WIEZA
Example 3

Input

0
14

Output

BRAK BILETU