Truthy or Falsy

Lab Python Beginner 10 points

Read a line of text. Print bool() of the text, then bool() of the text converted to an integer.

Input

One line containing a whole number.

Output

Two lines, each True or False.

Example

Input

0

Output

True
False
Sample input available Sample output available
Editor
Python

Hints

Any non-empty string is True - even "0".

The number 0 is False; any other number is True.

Solution explanation

Empty values ("", 0, [], None) are falsy; everything else is truthy. The text "0" is not empty, so it is truthy, but the number 0 is falsy.

Show solution
text = input()
print(bool(text))
print(bool(int(text)))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD