Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- salary = int(input())
- for i in range(0, n):
- site = input()
- if site =='Facebook':
- salary -= 150
- if salary <= 0:
- print(f"You have lost your salary.")
- break
- elif site == "Instagram":
- salary -= 100
- if salary <= 0:
- print(f"You have lost your salary.")
- break
- elif site == "Reddit":
- salary -= 50
- if salary <= 0:
- print(f"You have lost your salary.")
- break
- if salary > 0:
- print(int(salary))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement