Implement the function can_mia_save_300 that determines if Mia can save at least $300 based on her daily wage and additional earnings from shifts worked.
Functionality
The function should calculate Mia's total wage for a given number of days (D), her daily wage (X), and additional earnings from various shifts (represented by the list shifts). Different shifts provide varying earnings:
Shift 1: Full earnings (Y)
Shift 2: 98% of earnings (Y * 0.98)
Shift 3: 96% of earnings (Y * 0.96)
Shift 4: 94% of earnings (Y * 0.94)
Shift 5: 92% of earnings (Y * 0.92)
Shift 6: 90% of earnings (Y * 0.90)
The function should return 'YES' if her total wage is $300 or more, and 'NO' otherwise.
Input Requirements
D (int): The number of days Mia works.
X (float): Mia's daily wage.
Y (float): The standard additional earnings for a shift.
shifts (list of int): A list where each element represents a shift that Mia worked (values should be between 1 and 6 inclusive).
Output Requirements
The function should return a string: 'YES' or 'NO'.
Implementation
Write the solution in a file called /app/solution.py with the following function signature:
python
def can_mia_save_300(D, X, Y, shifts):
...
Ensure that your implementation adheres to the input and output specifications outlined above and performs the functionality as described.