<filename>ForLoop/Salary.py<gh_stars>1-10
tabs = int(input())
salary = float(input())

for tab in range(tabs):
    current_tab = input()
    if current_tab == "Facebook":
        salary -= 150
    elif current_tab == "Instagram":
        salary -= 100
    elif current_tab == "Reddit":
        salary -= 50
    if salary <= 0:
        print("You have lost your salary.")
        break

if salary > 0:
    print(int(salary))
<filename>ForLoop/Salary.py<gh_stars>1-10
tabs = int(input())
salary = float(input())

for tab in range(tabs):
    current_tab = input()
    if current_tab == "Facebook":
        salary -= 150
    elif current_tab == "Instagram":
        salary -= 100
    elif current_tab == "Reddit":
        salary -= 50
    if salary <= 0:
        print("You have lost your salary.")
        break

if salary > 0:
    print(int(salary))