# Arup Guha
# 6/26/2018
# Solution to Python SI@UCF Python Test #2 Q2

def main():

    # Get input.
    firstrow = int(input("How many items are you buying?\n"))

    # Regular case
    if n <= 10:
        print("Your cost is $", 10*n, sep="")

    # You bought a lot!
    else:
        print("Your cost is $", 100+6*(n-10), sep="")

main()
