Simple Python Program With Logical Thinking