Snuke has a favorite restaurant.  The price of any meal served at the restaurant is 800 yen (the currency of Japan), and each time a customer orders 15 meals, the restaurant pays 200 yen back to the customer.  So far, Snuke has ordered N meals at the restaurant. Let the amount of money Snuke has paid to the restaurant be x yen, and let the amount of money the restaurant has paid back to Snuke be y yen. Find x-y.
m = 0
x = 0
y = 0

list=[15,15*2,15*3,15*4,15*5,15*6]

n = input("Number of meals?")
n = int(n)

while m < n:
    x = x + 800
    m = m + 1
    if m in list:
        y = y + 200

print(x-y)
m = 0
x = 0
y = 0

list=[15,15*2,15*3,15*4,15*5,15*6]

n = input()
n = int(n)

while m < n:
    x = x + 800
    m = m + 1
    if m in list:
        y = y + 200

print(x-y)