Problem:


Score : 100 points

Problem Statement

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.

Constraints

1 ≤ N ≤ 100

Input

The input is given from Standard Input in the following format:

N

Output

Print the answer.

Sample Input 1

20

Sample Output 1

15800

So far, Snuke has paid 16000 yen, and the restaurant has paid back 200 yen. Thus, the answer is 15800.

Sample Input 2

60

Sample Output 2

47200

Snuke has paid 48000 yen for 60 meals, and the restaurant has paid back 800 yen.



Sample input:
20


Sample output:
15800

Submission status: Accepted

Solution code:
n=int(raw_input())
print 800*n-200*(n/15)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())
print(n * 800 - 200 * (n // 15))

Submission status: Accepted

Solution code:
N = int(input())

ans = 800 * N - 200 * (N // 15)

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

x = 800*N
y = (N//15)*200

print(x-y)

Submission status: Accepted

Solution code:
num = int(input())
get = num // 15

print((num * 800) - (get * 200))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
n = int(input())

r = int(n/15)
print(n*800-r*200)

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()


def main():
    n = II()
    r = n*800 - n//15*200
    return r

print(main())

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    print(N * 800 - N // 15 * 200)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# sys.setrecursionlimit(10000)


def main():
    # 入力処理
    N = int(input())

    # アルゴリズム本体
    x = 800 * N
    y = 200 * int(N / 15)

    # 出力
    print(x-y)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
i=int(input())
x=int(800*i)
y=int(200*int(i/15))
print(x-y)

Submission status: Accepted

Solution code:
#!/usr/bin/env python

x=0
y=0
n=int(raw_input().strip())
x=800*n
y=n/15*200
print x-y

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N=int(input())
x=800*N
y=(N//15)*200
print(x-y)

Submission status: Accepted

Solution code:
N = int(input())
x = 800 * N
y = (N//15)*200
print(x-y)

Submission status: Accepted

Solution code:
N = int(input())
x = N * 800
y = int(N/15)*200
print (x-y)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
if __name__ == '__main__':
  N = int(input())
  print(N*800 - (N//15)*200)

Submission status: Accepted

Solution code:
import sys

def solve():
    N = int(input())
    ans = 800 * N - 200 * (N // 15)
    print(ans)
    
def debug(x, table):
    for name, val in table.items():
        if x is val:
            print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr)
            return None


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
N = input()
print N * 800 - N / 15 * 200

Submission status: Accepted

Solution code:
N = int(input())
print((800*N) - (200*(N//15)))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
x = int(input())
#x, y = map(int, input().split())
y = x//15
z = 800 * x - 200 * y

print("{0}".format(str(z)))

Submission status: Accepted

Solution code:
x = int(raw_input())
print(x*800 - int(x/15) * 200)

Submission status: Accepted

Solution code:
n = int(raw_input())
x = n*800
y = int(n/15) * 200
print x - y

Submission status: Accepted

Solution code:
n = int(input())
money = int(n / 15) * 200
print((n * 800) - money)

Submission status: Accepted

Solution code:
n = int(raw_input())
print str(n*800 - (n//15)*200)

Submission status: Accepted

Solution code:
price = 800
i_ate = int(input())

ans = (price * i_ate) - (200 * (i_ate // 15))
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
x = N * 800
y = (N // 15) * 200
print (x-y)

Submission status: Accepted

Solution code:
N = int(input())

payback_N = N//15

print(N*800 - payback_N*200)

Submission status: Accepted

Solution code:
n = input()
ans = n*800-200*(n/15)
print ans

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
N=int(input())
x=800*N
y=(N//15)*200

print(x-y)

Submission status: Accepted

Solution code:
# coding: utf-8


def main():
    n = int(input())
    result = n * 800
    print(result - (int(n / 15) * 200))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = input()
x, y = 0, 0
for i in range(1,N+1):
    x += 800
    if i%15 == 0 :
        y += 200
print x-y

Submission status: Accepted

Solution code:
N = int(input())
x = 0
y = 0
for i in range(1,N+1):
    x += 800
    if (i%15 == 0):
        y += 200
print(x-y)

Submission status: Accepted

Solution code:
n = input()
print 800*n - 200*(n/15)

Submission status: Accepted

Solution code:
N = input()
x = N*800
y = N/15 *200
print x - y

Submission status: Accepted

Solution code:
import math
N = int(input())
print(800 * N - 200 * math.floor(N / 15))

Submission status: Accepted

Solution code:
N=int(input())
ans=N*800-(N-N%15)*200/15
print(int(ans))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = input()
paid = 800*N
cashback = (N/15)*200
print(paid-cashback)

Submission status: Accepted

Solution code:
def input_parser():
    N=int(input())
    return N

N=input_parser()
bank=0
for i in range(0,N,1):
    bank+=800
    if (i+1)%15 is 0:
        bank-=200

def output_parser(bank):
    print(bank)

output_parser(bank)

Submission status: Accepted

Solution code:
n = int(raw_input())

x = 800*n

y = 200*(n//15)

print x-y

Submission status: Accepted

Solution code:
n = input()

print 800*n - 200*(int(n/15))

Submission status: Accepted

Solution code:
n = int(input())
x = n / 15
res = 800 * n - 200 * int(x)
print(res)

Submission status: Accepted

Solution code:
n = input()
print 800*n - n/15*200

Submission status: Accepted

Solution code:
print (lambda N:N*800-(N/15)*200)(int(raw_input()))

Submission status: Accepted

Solution code:
n = int(raw_input())
 
x = n * 800
y = (n / 15) * 200
 
print x-y

Submission status: Accepted

Solution code:
n = int(raw_input())

x = n * 800
y = (n / 15) * 200

print x-y

Submission status: Accepted

Solution code:
N=int(input());print(N*800-N//15*200)

Submission status: Accepted

Solution code:
#ABC055A

n=int(raw_input())
x=800*n
y=n/15*200
res=x-y
print res

Submission status: Accepted

Solution code:
n = input()
print 800*n - n/15*200

Submission status: Accepted

Solution code:
N = int(input())
print(800 * N - 200 * int(N /15))

Submission status: Accepted

Solution code:
a = int(input())
x = a * 800
y= (a//15)*200

print(x-y)

Submission status: Accepted

Solution code:
n=input()
print n*800-(n/15)*200

Submission status: Accepted

Solution code:
n = int(input())
x = 800 * n
y = 200 * (int(n / 15))
print(x - y)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
INF=10**10

def main():
    
    n=int(input())
    print(n*800-n//15*200)
    
if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())

print(n * 800 - (n//15) * 200)

Submission status: Accepted

Solution code:
N = int(raw_input())
print N*800 - 200*int(N/15)

Submission status: Accepted

Solution code:
N = int(raw_input())
print 800 * N - (N / 15) * 200

Submission status: Accepted

Solution code:
n=int(input())
print(n*800 - 200*(n//15))

Submission status: Accepted

Solution code:
import sys

n = int(sys.stdin.readline())

bonus = n / 15

x = 800*n
y = bonus * 200

print x - y

Submission status: Accepted

Solution code:
from sys import stdin
n = int(stdin.readline())
print n*800 - (n/15)*200

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    n = int(input())
    print(n * 800 - 200 * (n // 15))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=input()
x=800*N
y=N/15*200
a=x-y
print (a)

Submission status: Accepted

Solution code:
n = int(input())
print(800 *n - ( 200 * int(n / 15)))

Submission status: Accepted

Solution code:
n = int(input())

x = 800 * n
y = (n // 15) * 200

print(x-y)

Submission status: Accepted

Solution code:
N = int(raw_input())

discount = N / 15

print 800*N - discount*200

Submission status: Accepted

Solution code:
n = int(input())
x = 800*n
y = int(n/15)*200
print(x-y)

Submission status: Accepted

Solution code:
N = int(input())

print(N*800 - (N // 15) * 200)

Submission status: Accepted

Solution code:
n = input()
n = int(n)

a = n // 15
res = n * 800 - a * 200
print(res)

Submission status: Accepted

Solution code:
N = int(input())
print(int(800 * N - N // 15 * 200))

Submission status: Accepted

Solution code:
N = int(input())

x = 800 * N
y = N//15 * 200

print(x-y)

Submission status: Accepted

Solution code:
import sys
N = int(raw_input())
assert(1 <= N <= 100)
x = 800*N
y = (N/15)*200
print x - y

Submission status: Accepted

Solution code:
N = int(raw_input())
x = 800*N
y = N/15*200
print x-y

Submission status: Accepted

Solution code:
N = int(input())
x = 800*N
y = 200*int(N/15)
print(x-y)

Submission status: Accepted

Solution code:
#coding: UTF-8
N=int(input())
print(N*800-(N//15)*200)

Submission status: Accepted

Solution code:
N = int(input())
sum_pay = N*800
bonus_cnt = N / 15
print(sum_pay - bonus_cnt*200)

Submission status: Accepted

Solution code:
def culc():
    N = int(input())
    if 1<=N<=100:
        tmp = N//15
        x = 800 * N
        y = 200 * tmp
    return x-y

if __name__=="__main__":
    print(culc())

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
print(n * 800 - (200 * int(n / 15)))

Submission status: Accepted

Solution code:
import math
n = int(input())
x = 800*n
i = n/15
i = math.floor(i)
y = i*200
print(x-y)

Submission status: Accepted

Solution code:
n = int(input())


def main(n):
    get = n // 15 * 200
    pay = n * 800
    return pay - get


ans = main(n)
print(ans)

Submission status: Accepted

Solution code:
N=int(input())
x=800*N
y=(N//15)*200
Z=x-y
print(Z)

Submission status: Accepted

Solution code:
x = 800 * int(input())
y = 200* (x//(800*15))
print(x-y)

Submission status: Accepted

Solution code:
n = int(input())
x = 800*n
y = (n // 15) * 200
print(x-y)

Submission status: Accepted

Solution code:
N = int(input())
x = N * 800
y = (N // 15) * 200
print(str(x - y))

Submission status: Accepted

Solution code:
N = int(input())

x = 800 * N
y = (N // 15) * 200
print(x-y)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    N = int(input().rstrip())
    print(800 * N - 200 * (N // 15))

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        n = int(line)
        x = n * 800
        y = int(n / 15) * 200
        print x - y

if __name__ == "__main__":
    main(sys.argv)

Submission status: Accepted

Solution code:
# 整数の入力
N = int(input())
# 
x = N * 800
temp = N // 15
y = temp * 200
ans = x-y
# 出力
print(ans)

Submission status: Accepted

Solution code:
N=input()

r = N * 800 - (N/15)*200
print r

Submission status: Accepted

Solution code:
N = int(input())

x = 800 * N
y = int(N / 15) * 200

print(x-y)

Submission status: Accepted

Solution code:
N = int(input())
ans = 800 * N - 200 * int(N/15)
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
     
x = N*800
y = int(N//15) * 200
     
print(x-y)

Submission status: Accepted

Solution code:
num = int(input())

x = 800*num
num_15 = num // 15
y = num_15 * 200

print(x - y)

Submission status: Accepted

Solution code:
n = int(input())

x = n * 800
y = (n // 15) * 200
ans = x - y
print(ans)

Submission status: Accepted

Solution code:
N = int(raw_input())
print N * 800 - (N/15) * 200

Submission status: Accepted

Solution code:
# coding: utf-8
def getLnInputs():
    return input().split()


def getLnIntInputs():
    return list(map(int, getLnInputs()))


def main():
    N = getLnIntInputs()[0]
    print(800 * N - 200 * (N // 15))
    return


main()

Submission status: Accepted

Solution code:
n = int(input())

ans = 800 * n - (200 * (n // 15))
print(ans)

Submission status: Accepted

Solution code:
N = int(input().strip())
cost = N * 800
val = N // 15
print(cost - (val*200))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())

x = a * 800
y = (a / 15) * 200
ans = x - y
print ans

Submission status: Accepted

Solution code:


N = int(input())
x = 800 * N
y = (N // 15) * 200

print(x-y)

Submission status: Accepted

Solution code:
from sys import stdin

n = int(stdin.readline())

x = n * 800

y = (n // 15) * 200

print(x - y)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

x = 800 * N
y = (N//15)*200
print(x-y)

Submission status: Accepted

Solution code:
n = input()
print n*800 - 200*(n//15)

Submission status: Accepted

Solution code:
N = int(input())
dis = (N//15)*200
print(N*800-dis)

Submission status: Accepted

Solution code:
N = int(input())
N_service = N // 15
x = 800 * N
y = 200 * N_service
print(x - y)

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    n = int(input())
    print(n * 800 - 200 * ( n // 15))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())

x = n * 800
y = (n // 15) * 200
print(x - y)

Submission status: Runtime Error

Solution code:
n = int(input())

input(x - 200 * (x//15))

Submission status: Runtime Error

Solution code:
if n >= 15:
    x = n * 800
    y = ( n // 15 ) * 200
    print(x - y)
else:
    print(n * 800)

Submission status: Runtime Error

Solution code:
n=int(input())
print(800*n-200*(n//15)

Submission status: Runtime Error

Solution code:
n = int(input())

x = 800 * n     # 払った金額

# レストランからもらう金額
if n >= 15:
    y = 200 * (n//15)

# 払った金額 - レストランからもらうお金
ans = x - y
print(ans)

Submission status: Runtime Error

Solution code:
test

Submission status: Runtime Error

Solution code:
N = int(input())
x = 800*N
if 15 <= N <30 :
    y = 200
elif  30<= N <45:
    y = 400
elif 45 <= N <60:
    y = 600
elif 60 <= N < 75:
    y = 800
elif 75 <= N < 90:
    y = 1000
elif 90 <= N < 100:
    y = 1200
elif N ==100:
    y = 1200
print(x - y)

Submission status: Runtime Error

Solution code:
N = int(input())
x = 800*N
if 15 <= int(N) <30 :
    y = 200
elif  30<= int(N) <45:
    y = 400
elif 45 <= int(N) <60:
    y = 600
elif 60 <= int(N) < 75:
    y = 800
elif 75 <= int(N) < 90:
    y = 1000
elif 90 <= int(N) < 100:
    y = 1200
elif int(N) ==100:
    y = 1200
print(x - y)

Submission status: Runtime Error

Solution code:
n = int,input()
k = int(n/15)
x = 800*n - 200*k
print(x)

Submission status: Runtime Error

Solution code:
n = int,input()
k = n/15
x = 800*n - 200*k
print(x)

Submission status: Runtime Error

Solution code:
x = N * 800
y = (N // 15) * 200
print(x - y)

Submission status: Runtime Error

Solution code:
N= int(input())
x= 800 * N
if N < 15:
    y = 0
if 15 <= N < 30:
    y = 200
if 30 <= N < 45:
    y = 400
if 45 <= N < 60:
    y = 600
if 60 <= N < 75:
    y = 800
if 75 <= N < 100:
    y = 1000

print(x-y)

Submission status: Runtime Error

Solution code:
#include <stdio.h>

int main(void) {
  int N;
  scanf("%d", &N);
  int x = 800 * N;
  int y = N / 15 *200;
  int ans = x - y;
  printf("%d\n", ans);
  return 0;
}

Submission status: Runtime Error

Solution code:
n = int(input())

meal_price = n * 15
meal_discount_count = n // 15

return meal_price - (meal_discount_count * 200)

Submission status: Runtime Error

Solution code:
N = map(int, input())
n = N // 15
x = 800 * N
y = 200 * n

print(x-y)

Submission status: Runtime Error

Solution code:
i = int(input())
d = i * 800
b = i // 15

if 0 < b:
    c = d - (200 * b)
    print(c)
else:
    print(c)

Submission status: Runtime Error

Solution code:
n = int(input())

print(800*n - int(n/15)200)

Submission status: Runtime Error

Solution code:
N = input()

x = N*800
y = 0

for i in range(N+1):
  if i % 15 == 0:
    y = y + 200

ans = x-y    
print(ans)

Submission status: Runtime Error

Solution code:
x = 800*N

y = 0
if N % 15 ==0:
  y = y + 200

print(x-y)

Submission status: Runtime Error

Solution code:
n, x = map(int, input().split())
print(n*800-n//15*200)

Submission status: Runtime Error

Solution code:
import math
N = int(input())
print(math.factrial(N) % (10**9+7))

Submission status: Runtime Error

Solution code:
n=int(input())
x=800*N
y=200*(n//15)
ans=x-y
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
s = str(input())
A = ''

def majikayo():
    k = 0
    if A[0] == 'S' and s[0] == 'o':
        if A[1] == A[-1]:
            if A[-1] = 'S' and s[-1] == 'o':
                if A[0] == A[-2]:
                    k = 1
            elif A[-1] = 'S' and s[-1] == 'x':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'o':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'x':
                if A[0] == A[-2]:
                    k = 1
    elif A[0] == 'S' and s[0] == 'x':
        if A[1] != A[-1]:
            if A[-1] = 'S' and s[-1] == 'o':
                if A[0] == A[-2]:
                    k = 1
            elif A[-1] = 'S' and s[-1] == 'x':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'o':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'x':
                if A[0] == A[-2]:
                    k = 1
    elif A[0] == 'W' and s[0] == 'o':
        if A[1] != A[-1]:
            if A[-1] = 'S' and s[-1] == 'o':
                if A[0] == A[-2]:
                    k = 1
            elif A[-1] = 'S' and s[-1] == 'x':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'o':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'x':
                if A[0] == A[-2]:
                    k = 1
    elif A[0] == 'W' and s[0] == 'x':
        if A[1] == A[-1]:
            if A[-1] = 'S' and s[-1] == 'o':
                if A[0] == A[-2]:
                    k = 1
            elif A[-1] = 'S' and s[-1] == 'x':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'o':
                if A[0] != A[-2]:
                    k = 1
            elif A[-1] = 'W' and s[-1] == 'x':
                if A[0] == A[-2]:
                    k = 1
    if k == 1:
        return 1

A = 'SS'
for i in range(1,N-1):
    if s[i] == 'o' and A[i] == 'S':
        if A[i-1] == 'S':
            A += 'S'
        else:
            A += 'W'
    elif s[i] == 'o' and A[i] == 'W':
        if A[i-1] == 'S':
            A += 'W'
        else:
            A += 'S'
    elif s[i] == 'x' and A[i] == 'S':
        if A[i-1] == 'S':
            A += 'W'
        else:
            A += 'S'
    elif s[i] == 'x' and A[i] == 'W':
        if A[i-1] == 'S':
            A += 'S'
        else:
            A += 'W'
if majikayo() == 1:
    print(A)
else:
    A = 'SW'
    for i in range(1,N-1):
        if s[i] == 'o' and A[i] == 'S':
            if A[i-1] == 'S':
                A += 'S'
            else:
                A += 'W'
        elif s[i] == 'o' and A[i] == 'W':
            if A[i-1] == 'S':
                A += 'W'
            else:
                A += 'S'
        elif s[i] == 'x' and A[i] == 'S':
            if A[i-1] == 'S':
                A += 'W'
            else:
                A += 'S'
        elif s[i] == 'x' and A[i] == 'W':
            if A[i-1] == 'S':
                A += 'S'
            else:
                A += 'W'
    if majikayo() == 1:
        print(A)
    else:
        A = 'WS'
        for i in range(1,N-1):
            if s[i] == 'o' and A[i] == 'S':
                if A[i-1] == 'S':
                    A += 'S'
                else:
                    A += 'W'
            elif s[i] == 'o' and A[i] == 'W':
                if A[i-1] == 'S':
                    A += 'W'
                else:
                    A += 'S'
            elif s[i] == 'x' and A[i] == 'S':
                if A[i-1] == 'S':
                    A += 'W'
                else:
                    A += 'S'
            elif s[i] == 'x' and A[i] == 'W':
                if A[i-1] == 'S':
                    A += 'S'
                else:
                    A += 'W'
        if majikayo() == 1:
            print(A)
        else:
            A = 'WW'
            for i in range(1,N-1):
                if s[i] == 'o' and A[i] == 'S':
                    if A[i-1] == 'S':
                        A += 'S'
                    else:
                        A += 'W'
                elif s[i] == 'o' and A[i] == 'W':
                    if A[i-1] == 'S':
                        A += 'W'
                    else:
                        A += 'S'
                elif s[i] == 'x' and A[i] == 'S':
                    if A[i-1] == 'S':
                        A += 'W'
                    else:
                        A += 'S'
                elif s[i] == 'x' and A[i] == 'W':
                    if A[i-1] == 'S':
                        A += 'S'
                    else:
                        A += 'W'
            if majikayo() == 1:
                print(A)
            else:
                print(-1)

Submission status: Runtime Error

Solution code:
n = int(input())
a,b = divmod(n,15)
print(n*800 - 200*a)n = int(input())
a,b = divmod(n,15)
print(n*800 - 200*a)

Submission status: Runtime Error

Solution code:
n = int(input())
  print((800*n) - (n//15*200))

Submission status: Runtime Error

Solution code:
n = input(int())

N = n//15

print(n*800-200*N)

Submission status: Runtime Error

Solution code:
meals = int(input)
price15 = (15*800)-200
print((meals//15)*price15+800*(meals%15))

Submission status: Runtime Error

Solution code:
n = int(input())
p = 1
for i in range(1,n+1):
p *= i
p = p % (10**9+7)
print(p)

Submission status: Runtime Error

Solution code:
a = int(input)
print(a*800-(a//15)*200)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
seed1 = ["S","W"]
ans = ["SS","SW","WS","WW"]
for i in s[1:]:
    for k,v in enumerate(ans):
        now = 0 if i == "o" else 1
        now = (now + seed1.index(v[-1]) + seed1.index(v[-2])) % 2
        if now:
            ans[k] += "W"
        else:
            ans[k] += "S"
for i in ans:
    now = 0 if i[0] == "o" else 1
    if (i[0] == i[-1]) and ((i[1] == i[-2]) ^ now):
        print(i[:-1])
        exit()
print(-1)

Submission status: Runtime Error

Solution code:
import numpy as np
n,m=map(int, input().split())
if n>=m/2:
  m_fin = m//2
  print(m_fin)
else:
  m_aft = m -2*n
  m_fin = m_aft//4
  print(n+m_fin)

Submission status: Runtime Error

Solution code:
    import numpy as np
    n,m=map(int, input().split())
     
    if n>=m/2:
      m_fin = m//2
      print(m_fin)
    else:
      m_aft = m -2*n
      m_fin = m_aft//4
      print(n+m_fin)

Submission status: Runtime Error

Solution code:
import numpy as np
n,m=map(int, input().split())
 
if n>=m/2:
  
  print(m//2)
else:
  m_aft = m -2*n
  m_fin = m_aft//4
  print(n+m_fin)

Submission status: Runtime Error

Solution code:
        import numpy as np
        n,m=map(int, input().split())
         
        if n>=m/2:
          m_fin = m//2
          print(m_fin)
        else:
          m_aft = m -2*n
          m_fin = m_aft//4
          print(n+m_fin)

Submission status: Runtime Error

Solution code:
    import numpy as np
    n,m=map(int, input().split())
     
    if n>=m/2:
      print("m//2")
    else:
      m_aft = m -2*n
      m_fin = m_aft//4
      print(n+m_fin)

Submission status: Runtime Error

Solution code:
import numpy as np
n,m=map(int, input().split())
 
if n>=m/2:
  print(m//2)
else:
  m_aft = m -2*n
  m_fin = m_aft//4
  print(n+m_fin)

Submission status: Runtime Error

Solution code:
S = list(map(int,input().split()))
N=S[0]
M=S[1]
N1=0
M1=0
count = 0

if 2*N<=M:
    count = N
    N1=0
    M1=M-2*N
    count+=M1//4
elif M<2*N:
    count += M//2
print(count)

Submission status: Runtime Error

Solution code:
S = list(map(int,input().split()))
N=S[0]
M=S[1]
N1=0
M1=0
count = 0
if N<2*M:
    count = N
    N1=0
    M1=M-2*N
    count+=M1//4
else:
    count += M//2
print(count)

Submission status: Runtime Error

Solution code:
S = list(map(int,input().split()))
N=S[0]
M=S[1]
N1=0
M1=0
count = 0
if N<2*M:
    count += N
    N1=0
    M1=M-2*N
else:
    count += M//2
    N1 =N-M//2
    M1 =M-(M//2)*2
    
for i in range(N1):
    if N1 ==0 or M1<=1:
        break
    N1=N1-1
    M1=M1-2
    count += 1
if N1==0:
    for i in range(M1):
        if M1>=4:
            M1 -= 4
            count += 1
        if M1<4:
            break
print(count)

Submission status: Runtime Error

Solution code:
n=map(int,raw_input().split())
x=800*n
y=200(n/15)
print x-y

Submission status: Runtime Error

Solution code:
n=input()
x=800*n
y=200(n/15)
print x-y

Submission status: Runtime Error

Solution code:
N=input()
print (800*N) - 200(N/15)

Submission status: Runtime Error

Solution code:
n=raw_input().split()
print 800*n -200(n/15)

Submission status: Runtime Error

Solution code:
n=input()
print 800*n -200(n/15)

Submission status: Runtime Error

Solution code:
n = int(input())
print(800*n - 200(n//15))

Submission status: Runtime Error

Solution code:
N = int(input())
x = N - ((N/15)200)

print (x)

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
if N == 0:
    print(0)
elif N >= M:
    print(M // 2)
else:
    ret = N
    M -= N * 2
    ret += M // 4
    print(ret)

Submission status: Runtime Error

Solution code:
print(800*int(input())-200*(int(input())//15))

Submission status: Runtime Error

Solution code:
print(800*int(input())-200*(n//15))

Submission status: Runtime Error

Solution code:
n=int(input())
print(x*800-(x//15)*200)

Submission status: Runtime Error

Solution code:
n = int(input())
print(800*x - (n//15)*200)

Submission status: Runtime Error

Solution code:
N=int(input())
x=N*800
if N>=15:
    y=200*(N//15)
ans=x-y
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
x=N*800
if N>=15:
    y=200*(N%15)
ans=x-y
print(ans)

Submission status: Runtime Error

Solution code:
from  math import factorial
N = int(input())
N2=math.factorial(N)

print((N2)%(10 ** 9 + 7))

Submission status: Runtime Error

Solution code:
import math
def main(n):
    x = 800 * n
    if n >= 15:
        y = 200 * math.floor(n / 15)
    print(x - y)

main(int(input()))

Submission status: Runtime Error

Solution code:
def Main(n):
    x = 800 * n
    if n >= 15:
        y = 200 * math.floor(n / 15)
    print(x - y)
 
Main(int(input()))

Submission status: Runtime Error

Solution code:
n = int(input())
def main(n):
    x = 800 * n
    if n >= 15:
        y = 200 * math.floor(n / 15)
    print(x - y)

main(n)

Submission status: Runtime Error

Solution code:
n = int(input())

k = n//15

cost = n*800

return = k*200

print(cost - return)

Submission status: Runtime Error

Solution code:
import sys
from io import StringIO
import unittest
import math

def resolve():
    s,c= map(int,input().split())

    if s>=c/2:
        print(str(math.floor(c/2)))
    else:
        zanc = c - (s * 2)
        print(str(s + math.floor(zanc/4)))
        
resolve()

Submission status: Runtime Error

Solution code:
a=input()
print(800*a-200*(a//15))

Submission status: Runtime Error

Solution code:
食べた回数=int(input())
値段=800
ボーナス=200
支払うお金=食べた回数 * 値段
もらうお金=食べた回数//15 * ボーナス
     
    print(支払うお金-もらうお金)

Submission status: Runtime Error

Solution code:
食べた回数= int(input())
値段=800
ボーナス=200
支払うお金= 食べた回数 * 値段
もらうお金=　食べた回数//15 * ボーナス

print(支払うお金 - もらうお金)

Submission status: Runtime Error

Solution code:
N=int(input())
x=N*800
y=N//15*200
S=x-y
print(S)v

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = 800 * N

TIMES = (N // 15) * 200

print(All - TIMES)

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = 800 * N
TIMES = (N // 15)*200

print(All - TIMES)

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = 800 * N
TIMES = N //15

print(All - (200*TIMES))

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = N*800
TIMES = N //15

print(All - (200*TIMES))

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = N*800
TIMES = N //15


if N < 15:
    print(ALL)
else:
    print(All - (200*TIMES))

Submission status: Runtime Error

Solution code:
N = int(input())

ALL = N*800
TIMES = N //15


if N < 15:
    print(ALL)
else:
    print(All - (800*TIMES))

Submission status: Runtime Error

Solution code:
n = int(input())
print(800*n - 200*(n//15)

Submission status: Runtime Error

Solution code:
n = input()
x = 800 * n
y = n / 15 * 200

print(x - y)

Submission status: Runtime Error

Solution code:
def main():
  N = int(input())
  s = input()

  arr = ['']*N
  for i in range(N):
    if s[i] == 'x':
      arr[i] = 'S'
  
  cur = 'S'
  ind = 0
  while ind < N:
    while ind < N and s[ind] != 'x':
      arr[ind] = cur
      ind += 1
    if cur == 'S':
      cur = 'W'
    else:
      cur = 'S'

    if ind >= N:
      break
    
    if s[ind] == 'x':
      ind += 1

    while ind < N and s[ind] == 'x':
      arr[ind] = cur
      if cur == 'S':
        cur = 'W'
      else:
        cur = 'S'
      ind += 1
    
    arr[ind-1] = 'S'
    if arr[ind-2] == 'S':
      cur = 'W'
    else:
      cur = 'S'
    if ind >= N:
      break

  if s[N-1] =='o':
    if arr[N-1] == 'S' and arr[N-2] == arr[0]:
      print(''.join(arr))
    elif arr[N-1] == 'W' and arr[N-2] != arr[0]:
      print(''.join(arr))
    else:
      print('-1')
  else:
    if arr[N-1] == 'W' and arr[N-2] == arr[0]:
      print(''.join(arr))
    elif arr[N-1] == 'S' and arr[N-2] != arr[0]:
      print(''.join(arr))
    else:
      print('-1')
main()

Submission status: Runtime Error

Solution code:
N = int(input())

print(N*800 - (N/15)*200)N = int(input())

print(N*800 - round((N/15))*200)

Submission status: Runtime Error

Solution code:
N = int(input())
x = N*800
if N>=15:
    y = (N//15)*200
print(x-y)

Submission status: Runtime Error

Solution code:
N = int(input())
x = N*800
if N>=15:
    y = N//15*200
print(x-y)

Submission status: Runtime Error

Solution code:
a = int(input())
print((a*800)-(math.floor(a/15)*200))

Submission status: Runtime Error

Solution code:
n = int(input())
x = 800*n
b = n%15
if b == 0:
  y = 200*b
print(x-y)

Submission status: Runtime Error

Solution code:
n = int(input())
cb = int((n // 15) * 200
print(800 * n - cb)

Submission status: Runtime Error

Solution code:
n = int(input()) #number of meals

return(n*800 - n%15*200)

Submission status: Runtime Error

Solution code:
n = int(input()) #number of meals

payment = 0
while (n % 15 >= 1 ){
  payment = 800*15 + 200
  n -= 15
}
payment += n*800

print(payment)

Submission status: Runtime Error

Solution code:
N =int(input())
print(N*800-(n//8)*200)