# Arup Guha
# 1/5/2013
# Solution to Programming Knights Practice Program Chapter 2 Problem 4
# Scholarship

LOW_SCHOLARSHIP = 1000
MID_SCHOLARSHIP = 2500
HIGH_SCHOLARSHIP = 5000

def main():

    # Get the student's scores.
    sat = int(input("Please enter your SAT score.\n"))
    gpa = float(input("Please enter your unweighted GPA.\n"))

    # Use the given formula
    composite = sat/1000 + gpa
    amount = 0

    # Calculate scholarship value.
    if composite <= 4:
        amount = 0
    elif composite < 5:
        amount = LOW_SCHOLARSHIP
    elif composite < 6:
        amount = MID_SCHOLARSHIP
    else:
        amount = HIGH_SCHOLARSHIP

    # Print out an appropriate message!
    if amount > 0:
        print("Great, you got a scholarship for $",amount,"!", sep="")
    else:
        print("Sorry, you did not receive a scholarship.")

main()
