Back to tasks
Who is positive?
BeginnerPython for kids 路 Lesson 26: An if inside an if
Problem Statement
Read two numbers a and b. Print OBIE (both) if both are positive, TYLKO A or TYLKO B (only a / only b) if only one is positive, and ZADNA (neither) if neither is positive.
Input Format
Two whole numbers a and b, each on its own line (-1000 <= a, b <= 1000).
Output Format
OBIE, TYLKO A, TYLKO B or ZADNA.
Examples
Example 1
Input
3 4
Output
OBIE
Example 2
Input
3 -4
Output
TYLKO A
Example 3
Input
-3 -4
Output
ZADNA