"""
Lecture 5 - Laboratory Exercise
Simplified income tax calculator

Rules:
- Single: threshold = 32000
- Married: threshold = 64000
- Up to the threshold: 10%
- Above the threshold: 25% on the excess
"""

# 1. Define tax rates and thresholds
LOW_RATE = ...
HIGH_RATE = ...
SINGLE_LIMIT = ...
MARRIED_LIMIT = ...

# 2. Read annual income as text and marital status
# Hint: remove extra spaces; normalize status to uppercase
income_text = ...
status = ...

# 3. Validate input
# If income is not a non-negative integer -> print an error
# Else if status is not "S" or "M" -> print an error
if ...:
    ...
elif ...:
    ...
else:
    # 4. Convert income to int
    income = ...

    # 5. Choose the correct threshold
    if ...:
        limit = ...
    else:
        limit = ...

    # 6. Compute the tax
    # If income <= limit:
    #     tax = income * LOW_RATE
    # Else:
    #     tax = tax on the threshold
    #           + tax on the excess
    if ...:
        tax = ...
    else:
        tax = ...

    # 7. Print income and tax with 2 decimal places
    print(...)
    print(...)
