Problem:


Score: 100 points

Problem Statement

M-kun is a competitor in AtCoder, whose highest rating is X.

In this site, a competitor is given a kyu (class) according to his/her highest rating. For ratings from 400 through 1999, the following kyus are given:

From 400 through 599: 8-kyu

From 600 through 799: 7-kyu

From 800 through 999: 6-kyu

From 1000 through 1199: 5-kyu

From 1200 through 1399: 4-kyu

From 1400 through 1599: 3-kyu

From 1600 through 1799: 2-kyu

From 1800 through 1999: 1-kyu

What kyu does M-kun have?

Constraints

400 \leq X \leq 1999

X is an integer.

Input

Input is given from Standard Input in the following format:

X

Output

Print the kyu M-kun has, as an integer.
For example, if he has 8-kyu, print 8.

Sample Input 1

725

Sample Output 1

7

M-kun's highest rating is 725, which corresponds to 7-kyu.

Thus, 7 is the correct output.

Sample Input 2

1600

Sample Output 2

2

M-kun's highest rating is 1600, which corresponds to 2-kyu.

Thus, 2 is the correct output.



Sample input:
725


Sample output:
7

Submission status: Accepted

Solution code:
x = int(input())

if x >= 1800:
    print("1")
elif x >= 1600:
    print("2")
elif x >= 1400:
    print("3")
elif x >= 1200:
    print("4")
elif x >= 1000:
    print("5")
elif x >= 800:
    print("6")
elif x >= 600:
    print("7")
elif x >= 400:
    print("8")

Submission status: Accepted

Solution code:
import math
i = int(input())
print(int(math.ceil(10 - i / 200)))

Submission status: Accepted

Solution code:
X=int(input())
if 400<=X<=599:
    print(8)
elif 600<=X<=799:
    print(7)
elif 800<=X<=999:
    print(6)
elif 1000<=X<=1199:
    print(5)
elif 1200<=X<=1399:
    print(4)
elif 1400<=X<=1599:
    print(3)
elif 1600<=X<=1799:
    print(2)
else:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())

if (400 <= x <= 599):
  print(8)
elif (600 <= x <= 799):
  print(7)
elif (800 <= x <= 999):
  print(6)
elif (1000 <= x <= 1199):
  print(5)
elif (1200 <= x <= 1399):
  print(4)
elif (1400 <= x <= 1599):
  print(3)
elif (1600 <= x <= 1799):
  print(2)
elif (1800 <= x <= 1999):
  print(1)

Submission status: Accepted

Solution code:
X = int(input())
if X >= 400 and X <= 599:
    print(8)
elif X >= 600 and X <= 799:
    print(7)
elif X >= 800 and X <= 999:
    print(6)
elif X >= 1000 and X <= 1199:
    print(5)
elif X >= 1200 and X <= 1399:
    print(4)
elif X >= 1400 and X <= 1599:
    print(3)
elif X >= 1600 and X <= 1799:
    print(2)
elif X >= 1800 and X <= 1999:
    print(1)

Submission status: Accepted

Solution code:
s = int(input())
if 400 <= s <= 599:
    print("8")
elif 600 <= s <= 799:
    print("7")
elif 800 <= s <= 999:
    print("6")
elif 1000 <= s <= 1199:
    print("5")
elif 1200 <= s <= 1399:
    print("4")
elif 1400 <= s <= 1599:
    print("3")
elif 1600 <= s <= 1799:
    print("2")
elif 1800 <= s <= 1999:
    print("1")

Submission status: Accepted

Solution code:
x = int(input())

if 400 <= x and x <= 599:
    print(8)
elif 600 <= x and x <= 799:
    print(7)
elif 800 <= x and x <= 999:
    print(6)
elif 1000 <= x and x <= 1199:
    print(5)
elif 1200 <= x and x <= 1399:
    print(4)
elif 1400 <= x and x <= 1599:
    print(3)
elif 1600 <= x and x <= 1799:
    print(2)
else:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())
if x >= 400 and x <= 599: print(8)

if x >= 600 and x <= 799: print(7)

if x >= 800 and x <= 999: print(6)

if x >= 1000 and x <= 1199: print(5)

if x >= 1200 and x <= 1399: print(4)

if x >= 1400 and x <= 1599: print(3)

if x >= 1600 and x <= 1799: print(2)

if x >= 1800 and x <= 1999: print(1)

Submission status: Accepted

Solution code:
x = int(input())
for i in reversed(range(9)):
    if x < 600:
        print(i)
        break
    else:
        x = x - 200

Submission status: Accepted

Solution code:
n = int(input())
if n>399 and n<600:
    print(8)
elif n>599 and n<800:
    print(7)
elif n>799 and n<1000:
    print(6)
elif n>999 and n<1200:
    print(5)
elif n>1199 and n<1400:
    print(4)
elif n>1399 and n<1600:
    print(3)
elif n>1599 and n<1800:
    print(2)
elif n>1799 and n<2000:
    print(1)

Submission status: Accepted

Solution code:
X = int(input())

if 1800 <= X <=1999:
    print(1)
elif 1600 <= X <=1799:
    print(2)
elif 1400 <= X <=1599:
    print(3)
elif 1200 <= X <=1399:
    print(4)
elif 1000 <= X <=1199:
    print(5)
elif 800 <= X <=999:
    print(6)
elif 600 <= X <=799:
    print(7)
else:
    print(8)

Submission status: Accepted

Solution code:
x=int(input())

if 400 <= x <=599:
    print('8')
if 600 <= x <=799:
    print('7')
if 800 <= x <=999:
    print('6')
if 1000 <= x <= 1199:
    print('5')
if 1200 <= x <= 1399:
    print('4')
if 1400 <= x <= 1599:
    print('3')
if 1600 <= x <= 1799:
    print('2')
if 1800 <= x <= 1999:
    print('1')

Submission status: Accepted

Solution code:
T = int(input())
if T >= 400 and T <= 599:
    print(8)
if T >= 600 and T <= 799:
    print(7)
if T >= 800 and T <= 999:
    print(6)
if T >= 1000 and T <= 1199:
    print(5)
if T >= 1200 and T <= 1399:
    print(4)
if T >= 1400 and T <= 1599:
    print(3)
if T >= 1600 and T <= 1799:
    print(2)
if T >= 1800 and T <= 1999:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())
n = 400
ans = 8

while n <= 2000:
    if x >= n and x <= n+199:
        print(ans)
        break
    else:
        ans -= 1
        n += 200

Submission status: Accepted

Solution code:
n = int(input())
if 400<=n<=599:
    print(8)
elif 600<=n<=799:
    print(7)
elif 800<=n<=999:
    print(6)
elif 1000<=n<=1199:
    print(5)
elif 1200<=n<=1399:
    print(4)
elif 1400<=n<=1599:
    print(3)
elif 1600<=n<=1799:
    print(2)
elif 1800<=n<=1999:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())

if 400 <= x <= 599:
    print(8)

elif 600 <= x <= 799:
    print(7)

elif 800 <= x <= 999:
    print(6)

elif 1000 <= x <= 1199:
    print(5)

elif 1200 <= x <= 1399:
    print(4)

elif 1400 <= x <= 1599:
    print(3)

elif 1600 <= x <= 1799:
    print(2)

elif 1800 <= x <= 1999:
    print(1)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**8)
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return [LIST() for _ in range(n)]
def NSTR(n): return [input() for _ in range(n)]


INF = float("inf")
MOD = 10**9 + 7


def main():
    X = INT()
    if 1800 <= X:
        print(1)
    elif 1600 <= X:
        print(2)
    elif 1400 <= X:
        print(3)
    elif 1200 <= X:
        print(4)
    elif 1000 <= X:
        print(5)
    elif 800 <= X:
        print(6)
    elif 600 <= X:
        print(7)
    else:
        print(8)
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
from string import ascii_letters as ascii

def Ss():
  return sys.stdin.readline().rstrip()

def Is():
  return map(int, Ss())

def get_kyu(score):
  if score >= 400 and score <= 599:
    return 8
  if score >= 600 and score <= 799:
    return 7
  if score >= 800 and score <= 999:
    return 6
  if score >= 1000 and score <= 1199:
    return 5
  if score >= 1200 and score <= 1399:
    return 4
  if score >= 1400 and score <= 1599:
    return 3
  if score >= 1600 and score <= 1799:
    return 2
  if score >= 1800 and score <= 1999:
    return 1
  return None

score = int(Ss())
print(get_kyu(score))

Submission status: Accepted

Solution code:
"""
AtCoder :: M-Solutions Programming Contest 2020 :: Kyu in AtCoder
https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_a
"""
import sys


def solve(rating):
    """Solve puzzle."""
    if 400 <= rating and rating <= 599: 
        return 8
    elif 600 <= rating and rating <= 799: 
        return 7
    elif 800 <= rating and rating <= 999: 
        return 6
    elif 1000 <= rating and rating <= 1199: 
        return 5
    elif 1200 <= rating and rating <= 1399:
        return 4
    elif 1400 <= rating and rating <= 1599: 
        return 3
    elif 1600 <= rating and rating <= 1799: 
        return 2
    elif 1800 <= rating and rating <= 1999: 
        return 1


def main():
    """Main program."""
    rating = int(sys.stdin.readline())
    print(solve(rating))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
t=int(input())
if t>=400 and t<600:
    print("8")
if t>=600 and t<800:
    print("7")
if t>=800 and t<1000:
    print("6")
if t>=1000 and t<1200:
    print("5")
if t>=1200 and t<1400:
    print("4")
if t>=1400 and t<1600:
    print("3")
if t>=1600 and t<1800:
    print("2")
if t>=1800 and t<2000:
    print("1")

Submission status: Accepted

Solution code:
X = int(input())

if 1800 <= X <= 1999:
  print("1")
elif 1600 <= X <= 1799:
  print("2")
elif 1400 <= X <= 1599:
  print("3")
elif 1200 <= X <= 1399:
  print("4")
elif 1000 <= X <= 1199:
  print("5")
elif 800 <= X <= 999:
  print("6")
elif 600 <= X <= 799:
  print("7")
elif 400 <= X <= 599:
  print("8")

Submission status: Accepted

Solution code:
N = int(input())

if(400 <= N <= 599):
    print("8\n")
elif(600 <= N <= 799):
    print("7\n")
elif(800 <= N <= 999):
    print("6\n")
elif(1000 <= N <= 1199):
    print("5\n")
elif(1200 <= N <= 1399):
    print("4\n")
elif(1400 <= N <= 1599):
    print("3\n")
elif(1600 <= N <= 1799):
    print("2\n")
else:
    print("1\n")

Submission status: Accepted

Solution code:
X = int(input())

print((2000-X-1)//200+1)

Submission status: Accepted

Solution code:
X = int(input())
if X >=400 and X<= 599:
  print('8')
elif X >= 600 and X <= 799:
  print('7')
elif X >= 800 and X <= 999:
  print('6')
elif X >= 1000 and X <= 1199:
  print('5')
elif X >= 1200 and X <= 1399:
  print('4')
elif X >= 1400 and X <= 1599:
  print('3')
elif X >= 1600 and X <= 1799:
  print('2')
elif X >= 1800 and X <= 1999:
  print('1')

Submission status: Accepted

Solution code:
X = int(input())

ans = 10 -  (X // 200)
print(ans)

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N = int(input())
if 400 <= N and N <= 599:
    ans = 8
elif 600 <= N and N <= 799:
    ans = 7
elif 800 <= N and N <= 999:
    ans = 6
elif 1000 <= N and N <= 1199:
    ans = 5
elif 1200 <= N and N <= 1399:
    ans = 4
elif 1400 <= N and N <= 1599:
    ans = 3
elif 1600 <= N and N <= 1799:
    ans = 2
elif 1800 <= N and N <= 1999:
    ans = 1


print(ans)



# ------------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)

Submission status: Accepted

Solution code:
x=int(input())
if x >=400 and 599>=x:
  print("8")
if x >=600 and 799>=x:
  print("7")
if x >=800 and 999>=x:
  print("6")
if x >=1000 and 1199>=x:
  print("5")
if x >=1200 and 1399>=x:
  print("4")
if x >=1400 and 1599>=x:
  print("3")
if x >=1600 and 1799>=x:
  print("2")
if x >=1800:
  print("1")

Submission status: Accepted

Solution code:
X=int(input())
if X<600:
    print("8")
elif 600<=X and X<800:
    print("7")
elif 800<=X and X<1000:
    print("6")
elif 1000<=X and X<1200:
    print("5")
elif 1200<=X and X<1400:
    print("4")
elif 1400<=X and X<1600:
    print("3")
elif 1600<=X and X<1800:
    print("2")
else:
    print("1")

Submission status: Accepted

Solution code:
X = int(input()) - 400

count = 8

while X > 0 or count > 1:
    X -= 200

    if X < 0:
        break
    else:
        count -= 1


print(count)

Submission status: Accepted

Solution code:
X = int(input())

if X >= 1800:
    print(1)
elif X >= 1600:
    print(2)
elif X >= 1400:
    print(3)
elif X >= 1200:
    print(4)
elif X >= 1000:
    print(5)
elif X>= 800:
    print(6)
elif X >= 600:
    print(7)
else:
    print(8)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    x = int(input())

    if x>=400 and x<= 599:
        print("8")
    elif x>=600 and x<=799:
        print("7")
    elif x>=800 and x<=999:
        print("6")
    elif x>=1000 and x<=1199:
        print("5")
    elif x>=1200 and x<=1399:
        print("4")
    elif x>=1400 and x<=1599:
        print("3")
    elif x>=1600 and x<=1799:
        print("2")
    elif x>=1600 and x<=1999:
        print("1")

Submission status: Accepted

Solution code:
import sys


def resolve(in_):
    x = int(in_.read())
    c = 9
    if 400 <= x <= 599:
        c = 8
    elif 600 <= x <= 799:
        c = 7
    elif 800 <= x <= 999:
        c = 6
    elif 1000 <= x <= 1199:
        c = 5
    elif 1200 <= x <= 1399:
        c = 4
    elif 1400 <= x <= 1599:
        c = 3
    elif 1600 <= x <= 1799:
        c = 2
    elif 1800 <= x <= 1999:
        c = 1
    return c


def main():
    answer = resolve(sys.stdin.buffer)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())
if 400 <= n <= 599:
  print('8')
elif 600 <= n <= 799:
  print('7')
elif 800 <= n <= 999:
  print('6')
elif 1000 <= n <= 1199:
  print('5')
elif 1200 <= n <= 1399:
  print('4')
elif 1400 <= n <= 1599:
  print('3')
elif 1600 <= n <= 1799:
  print('2')
else :
  print('1')

Submission status: Accepted

Solution code:
#coding: UTF-8


 
X =int(input())


if X<=599:
  print(8)
elif X<=799:
	print(7)
elif X<= 999:
  print(6)
elif X<= 1199:
  print(5)
elif X<=1399:
  print(4)
elif X<=1599:
  print(3)
elif X<=1799:
  print(2)
else:
  print(1)

Submission status: Accepted

Solution code:
x=int(input())
if x>=400 and x<=599:
  print(8)
elif x>=600 and x<=799:
  print(7)
elif x>=800 and x<=999:
  print(6)
elif x>=1000 and x<=1199:
  print(5)
elif x>=1200 and x<=1399:
  print(4)
elif x>=1400 and x<=1599:
  print(3)
elif x>=1600 and x<=1799:
  print(2)
elif x>=1800 and x<=1999:
  print(1)

Submission status: Accepted

Solution code:

x = int(input())
p = 400
l = []
for i in range(9):
    if x < p:
        print(9-i)
        exit()
    p += 200

Submission status: Accepted

Solution code:
n=int(input())
if 400<=n<=599:
    print(8)
elif 600<=n<=799:
    print(7)
elif 800<=n<=999:
    print(6)
elif 1000<=n<=1199:
    print(5)
elif 1200<=n<=1399:
    print(4)
elif 1400<=n<=1599:
    print(3)
elif 1600<=n<=1799:
    print(2)
elif 1800<=n<=1999:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())


if x >= 400 and x <= 599:
    print("8")
elif x >= 600 and x <= 799:
    print("7")
elif x >= 800 and x <= 999:
    print("6")
elif x >= 1000 and x <= 1199:
    print("5")
elif x >= 1200 and x <= 1399:
    print("4")
elif x >= 1400 and x <= 1599:
    print("3")
elif x >= 1600 and x <= 1799:
    print("2")
elif x >= 1800 and x <= 1999:
    print("1")

Submission status: Accepted

Solution code:
x=int(input())
for i in range(1,9):
    if x>=1800-(i-1)*200:
        print(i)
        break

Submission status: Accepted

Solution code:
score = int(input())

if score >= 400 and score < 600:
  print(8)
elif score >= 600 and score < 800:
  print(7)
elif score >= 800 and score < 1000:
  print(6)
elif score >= 1000 and score < 1200:
  print(5)
elif score >= 1200 and score < 1400:
  print(4)
elif score >= 1400 and score < 1600:
  print(3)
elif score >= 1600 and score < 1800:
  print(2)
elif score >= 1800 and score < 2000:
  print(1)

Submission status: Accepted

Solution code:
a = int(input())

if 400 <= a <= 599:
    print("8")
if 600 <= a <= 799:
    print("7")
if 800 <= a <= 999:
    print("6")
if 1000 <= a <= 1199:
    print("5")
if 1200 <= a <= 1399:
    print("4")
if 1400 <= a <= 1599:
    print("3")
if 1600 <= a <= 1799:
    print("2")
if 1800 <= a <= 1999:
    print("1")

Submission status: Accepted

Solution code:
X = int(input())

if 400 <= X <= 599:
    print("8")
if 600 <= X <= 799:
    print("7")
if 800 <= X <= 999:
    print("6")
if 1000 <= X <= 1199:
    print("5")
if 1200 <= X <= 1399:
    print("4")
if 1400 <= X <= 1599:
    print("3")
if 1600 <= X <= 1799:
    print("2")
if 1800 <= X <= 1999:
    print("1")

Submission status: Accepted

Solution code:
X = int(input())

if X <= 599:
  print(8)
elif X <= 799:
  print(7)
elif X <= 999:
  print(6)
elif X <= 1199:
  print(5)
elif X <= 1399:
  print(4)  
elif X <= 1599:
  print(3)
elif X <= 1799:
  print(2)
else:
  print(1)

Submission status: Accepted

Solution code:
#for _ in range(int(input())):
n=int(input())
if n>=400 and n<=599:print(8)
elif n>=600 and n<=799:print(7)
elif n>=800 and n<=999:print(6)
elif n>=1000 and n<=1199:print(5)
elif n>=1200 and n<=1399:print(4)
elif n>=1400 and n<=1599:print(3)
elif n>=1600 and n<=1799:print(2)
elif n>=1800 and n<=1999:print(1)

Submission status: Accepted

Solution code:
x=int(input())
for i in range(8):
	if x>=400+200*i and x<600+200*i:
		b=8-i

print(b)

Submission status: Accepted

Solution code:
x = int(input())

if (400 <= x) and (x <= 599):
    print(8)
elif (600 <= x) and (x <= 799):
    print(7)
elif (800 <= x) and (x <= 999):
    print(6)
elif (1000 <= x) and (x <= 1199):
    print(5)
elif (1200 <= x) and (x <= 1399):
    print(4)
elif (1400 <= x) and (x <= 1599):
    print(3)
elif (1600 <= x) and (x <= 1799):
    print(2)
elif (1800 <= x) and (x <= 1999):
    print(1)

Submission status: Accepted

Solution code:
a=int(input())

if a >= 400 and a < 600:
    print("8")
elif a >= 600 and a < 800:
    print("7")
elif a >= 800 and a < 1000:
    print("6")
elif a >= 1000 and a < 1200:
    print("5")
elif a >= 1200 and a < 1400:
    print("4")
elif a >= 1400 and a < 1600:
    print("3")
elif a >= 1600 and a < 1800:
    print("2")
elif a >= 1800 and a < 2000:
    print("1")

Submission status: Accepted

Solution code:
x = int(input())
if 400 <= x < 600:
    print(8)
elif 600 <= x < 800:
    print(7)
elif 800 <= x < 1000:
    print(6)
elif 1000 <= x < 1200:
    print(5)
elif 1200 <= x < 1400:
    print(4)
elif 1400 <= x < 1600:
    print(3)
elif 1600 <= x < 1800:
    print(2)
else:
    print(1)

Submission status: Accepted

Solution code:
n = int(input())
if 1800 <= n <= 1999:
    print(1)
elif 1600 <= n <= 1799:
    print(2)
elif 1400 <= n <= 1599:
    print(3)
elif 1200 <= n <= 1399:
    print(4)
elif 1000 <= n <= 1199:
    print(5)
elif 800 <= n <= 999:
    print(6)
elif 600 <= n <= 799:
    print(7)
else:
    print(8)

Submission status: Accepted

Solution code:
x = int(input())
if 400 <= x < 600: kyu = 8
if 600 <= x < 800: kyu = 7
if 800 <= x < 1000: kyu = 6
if 1000 <= x < 1200: kyu = 5
if 1200 <= x < 1400: kyu = 4
if 1400 <= x < 1600: kyu = 3
if 1600 <= x < 1800: kyu = 2
if 1800 <= x < 2000: kyu = 1
print(kyu)

Submission status: Accepted

Solution code:
""" A
    https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_a
"""
import sys
import math
from functools import reduce
from bisect import bisect_left

def readString():
    return sys.stdin.readline()

def readInteger():
    return int(readString())

def readStringSet(n):
    return sys.stdin.readline().split(" ")[:n]

def readIntegerSet(n):
    return list(map(int, readStringSet(n)))

def readIntegerMatrix(n, m):
    return reduce(lambda acc, _: acc + [readIntegerSet(m)], range(0, n), [])

def main(X):
    if X <= 599:
        return 8
    if X <= 799:
        return 7
    if X <= 999:
        return 6
    if X <= 1199:
        return 5
    if X <= 1399:
        return 4
    if X <= 1599:
        return 3
    if X <= 1799:
        return 2
    if X <= 1999:
        return 1

if __name__ == "__main__":
    _X = readInteger()

    print(main(_X))

Submission status: Accepted

Solution code:
x = int(input())

if 400 <= x <= 599:
    print(8)
elif 600 <= x <= 799:
    print(7)
elif 800 <= x <= 999:
    print(6)
elif 1000 <= x <=1199:
    print(5)
elif 1200 <= x <= 1399:
    print(4)
elif 1400 <= x <= 1599:
    print(3)
elif 1600 <= x <= 1799:
    print(2)
elif 1800 <= x <= 1999:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())
if x >= 1800:
    x = 1
elif x >= 1600:
    x = 2
elif x >= 1400:
    x = 3
elif x >= 1200:
    x = 4
elif x >= 1000:
    x = 5
elif x >= 800:
    x = 6
elif x >= 600:
    x = 7
elif x >= 400:
    x = 8
print(x)

Submission status: Accepted

Solution code:

def main():
    base = 400
    increment = 200
    X = int(input())
    for i in range(8):

        if base+increment*(i) <= X and X < base+increment*(i+1):
            print(8-i)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())
if 1800 <= x <= 1999:
    print(1)
elif 1600 <= x <= 1799:
    print(2)
elif 1400 <= x <= 1599:
    print(3)
elif 1200 <= x <= 1399:
    print(4)
elif 1000 <= x <= 1199:
    print(5)
elif 800 <= x <= 999:
    print(6)
elif 600 <= x <= 799:
    print(7)
elif 400 <= x <= 599:
    print(8)

Submission status: Accepted

Solution code:
x = int(input())

if 400 <= x <= 599:
  print(8)
elif 600 <= x <= 799:
  print(7)
elif 800 <= x <= 999:
  print(6)
elif 1000 <= x <= 1199:
  print(5)
elif 1200 <= x <= 1399:
  print(4)
elif 1400 <= x <= 1599:
  print(3)
elif 1600 <= x <= 1799:
  print(2)
elif 1800 <= x <= 1999:
  print(1)

Submission status: Accepted

Solution code:
X = int(input())

if X >= 400 and X < 600:
  print(8)
elif X>= 600 and X < 800:
  print(7)
elif X>= 800 and X < 1000:
  print(6)
elif X>= 1000 and X < 1200:
  print(5)
elif X>= 1200 and X < 1400:
  print(4)
elif X>= 1400 and X < 1600:
  print(3)
elif X>= 1600 and X < 1800:
  print(2)
elif X>= 1800 and X < 2000:
  print(1)

Submission status: Accepted

Solution code:
x=int(input())

n=x-400

m=n//100
#print(m)
k=m//2

print(8-k)

Submission status: Accepted

Solution code:
n = int(input())
if(n <= 599):
    print(8)
elif(n >= 600)and(n <= 799):
    print(7)
elif(n >= 800)and(n <= 999):
    print(6)
elif(n >= 1000)and(n <= 1199):
    print(5)
elif(n >= 1200)and(n <= 1399):
    print(4)
elif(n >= 1400)and(n <= 1599):
    print(3)
elif(n >= 1600)and(n <= 1799):
    print(2)
elif(n >= 1800)and(n <= 1999):
    print(1)

Submission status: Accepted

Solution code:
import sys
N = int(input())


rank = [i for i in range(8,0,-1)]


for i in range(len(rank)):
        #print((400*j),400*(j+1))
    if (200*i+400) <= N < 200*(i+1)+400:
        print(rank[i])
        sys.exit()

Submission status: Accepted

Solution code:
import math

a = int(input())
a -= 400
print(math.ceil((1600 - a) / 200 ))

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    X = int(input())

    k = (400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000)
    for i in range(8):
        if k[i] <= X < k[i + 1]:
            print(8 - i)


main()

Submission status: Accepted

Solution code:
x = int(input())
ans = "0"

if 400 <= x <= 599:
  ans = "8"
elif 600 <= x <= 799:
  ans = "7"
elif 800 <= x <= 999:
  ans = "6"
elif 1000 <= x <= 1199:
  ans = "5"
elif 1200 <= x <= 1399:
  ans = "4"
elif 1400 <= x <= 1599:
  ans = "3"
elif 1600 <= x <= 1799:
  ans = "2"
elif 1800 <= x <= 1999:
  ans = "1"

print(ans)

Submission status: Accepted

Solution code:
X = int(input())
import math
X -= 400
X /= 200
X = math.floor(X)
print(8-X)

Submission status: Accepted

Solution code:
a=int(input())
if 400<=a<=599:
        print('8')
if 600<=a<=799:
        print('7')
if 800<=a<=999:
        print('6')
if 1000<=a<=1199:
        print('5')
if 1200<=a<=1399:
        print('4')
if 1400<=a<=1599:
        print('3')
if 1600<=a<=1799:
        print('2')
if 1800<=a<=1999:
        print('1')

Submission status: Accepted

Solution code:
x = int(input())

if 400 <= x and x <= 599:
    print(8)
elif 600 <= x and x <= 799:
    print(7)
elif 800 <= x and x <= 999:
    print(6)
elif 1000 <= x and x <= 1199:
    print(5)
elif 1200 <= x and x <= 1399:
    print(4)
elif 1400 <= x and x <= 1599:
    print(3)
elif 1600 <= x and x <= 1799:
    print(2)
elif 1800 <= x and x <= 1999:
    print(1)

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    rank = x//200
    print(10 - rank)
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())
if 1800 <= x and x <= 1999:
    print(1)
elif 1600 <= x and x <= 1799:
    print(2)
elif 1400 <= x and x <= 1599:
    print(3)
elif 1200 <= x and x <= 1399:
    print(4)
elif 1000 <= x and x <= 1199:
    print(5)
elif 800 <= x and x <= 999:
    print(6)
elif 600 <= x and x <= 799:
    print(7)
else:
    print(8)

Submission status: Accepted

Solution code:
x=int(input())
y=int(x/200)
print(10-y)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import os
import re
import sys
from io import BytesIO, IOBase
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits


def inp():
    return(int(input()))


def inlist():
    return(list(map(int, input().split())))


def main():
    x = inp()
    if x >= 400 and x <= 599:
        print(8)
    if x >= 600 and x <= 799:
        print(7)
    if x >= 800 and x <= 999:
        print(6)
    if x >= 1000 and x <= 1199:
        print(5)
    if x >= 1200 and x <= 1399:
        print(4)
    if x >= 1400 and x <= 1599:
        print(3)
    if x >= 1600 and x <= 1799:
        print(2)
    if x >= 1800 and x <= 1999:
        print(1)


# region fastio
BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
def input(): return sys.stdin.readline().rstrip("\r\n")

# endregion


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = int(input())
def level(x):
    if x >= 1800:
        return 1
    elif x>= 1600:
        return 2
    elif x>=1400:
        return 3
    elif x>=1200:
        return 4
    elif x >= 1000:
        return 5
    elif x >= 800:
        return 6
    elif x >= 600:
        return 7
    else:
        return 8
print(level(x))

Submission status: Accepted

Solution code:
X=int(input())

if X >= 400 and X <=599:
    print("8")
elif X >= 600 and X <=799:
    print("7")
elif X >= 800 and X <=999:
    print("6")
elif X >= 1000 and X <=1199:
    print("5")
elif X >= 1200 and X <=1399:
    print("4")
elif X >= 1400 and X <=1599:
    print("3")
elif X >= 1600 and X <=1799:
    print("2")
elif X >= 1800 and X <=1999:
    print("1")

Submission status: Accepted

Solution code:
def INT():
    return int(input())

def MI():
    return map(int, input().split())

def LI():
    return list(map(int, input().split()))

X = INT()
if 400 <= X <= 599:
    print(8)
elif 600 <= X <= 799:
    print(7)
elif 800 <= X <= 999:
    print(6)
elif 1000 <= X <= 1199:
    print(5)
elif 1200 <= X <= 1399:
    print(4)
elif 1400 <= X <= 1599:
    print(3)
elif 1600 <= X <= 1799:
    print(2)
elif 1800 <= X <= 1999:
    print(1)

Submission status: Accepted

Solution code:
x=int(input())
if 400 <= x<=599:
  print('8')
if 600 <= x<=799:
  print('7')
if 800 <= x<=999:
  print('6')
if 1000 <= x<=1199:
  print('5')
if 1200 <= x<=1399:
  print('4')
if 1400 <= x<=1599:
  print('3')
if 1600 <= x<=1799:
  print('2')
if 1800 <= x<=1999:
  print('1')

Submission status: Accepted

Solution code:
X = int(input())
if X >=400 and X <=599:
    print(8)
elif X >=600 and X <=799:
    print(7)
elif X >=800 and X <=999:
    print(6)
elif X >=1000 and X <=1199:
    print(5)
elif X >=1200 and X <=1399:
    print(4)
elif X >=1400 and X <=1599:
    print(3)
elif X >=1600 and X <=1799:
    print(2)
else:
    print(1)

Submission status: Accepted

Solution code:
X = int(input())

if X >= 400 and X <= 599:
  print('8')
elif X >= 600 and X <= 799:
  print('7')
elif X >= 800 and X <= 999:
  print('6')
elif X >= 1000 and X <= 1199:
  print('5')
elif X >= 1200 and X <= 1399:
  print('4')
elif X >= 1400 and X <= 1599:
  print('3')
elif X >= 1600 and X <= 1799:
  print('2')
else:
  print('1')

Submission status: Accepted

Solution code:
x=int(input())
if x<600:
    print(8)
elif x<800:
    print(7)
elif x<1000:
    print(6)
elif x<1200:
    print(5)
elif x<1400:
    print(4)
elif x<1600:
    print(3)
elif x<1800:
    print(2)
elif x<2000:
    print(1)

Submission status: Accepted

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

if x >= 400 and x <= 599:
    ans = 8
elif x >= 600 and x <= 799:
    ans = 7
elif x >= 800 and x <= 999:
    ans = 6
elif x >= 1000 and x <= 1199:
    ans = 5
elif x >= 1200 and x <= 1399:
    ans = 4
elif x >= 1400 and x <= 1599:
    ans = 3
elif x >= 1600 and x <= 1799:
    ans = 2
elif x >= 1800 and x <= 1999:
    ans = 1



print(ans)

Submission status: Accepted

Solution code:
import sys, math
import io, os
#data = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
from bisect import bisect_left as bl, bisect_right as br, insort
from heapq import heapify, heappush, heappop
from collections import defaultdict as dd, deque, Counter
#from itertools import permutations,combinations
def data(): return sys.stdin.readline().strip()
def mdata(): return list(map(int, data().split()))
def outl(var) : sys.stdout.write('\n'.join(map(str, var))+'\n')
def out(var) : sys.stdout.write(str(var)+'\n')
#from decimal import Decimal
from fractions import Fraction
#sys.setrecursionlimit(100000)
INF = float('inf')
mod = int(1e9)+7



x=int(data())
ans=8-(x-399)//200
if (x-399)%200==0:
    ans+=1
out(ans)

Submission status: Accepted

Solution code:
X = int(input())
if 400 <= X <= 599 :
    print('8')
elif 600 <= X <= 799 :
    print('7')
elif 800 <= X <= 999 :
    print('6')
elif 1000 <= X <= 1199 :
    print('5')
elif 1200 <= X <= 1399 :
    print('4')
elif 1400 <= X <= 1599 :
    print('3')
elif 1600 <= X <= 1799 :
    print('2')
elif 1800 <= X <= 1999 :
    print('1')

Submission status: Accepted

Solution code:
x=int(input())
if 400<=x<600:
    print(8)
elif 600<=x<800:
    print(7)
elif 800<=x<1000:
    print(6)
elif 1000<=x<1200:
    print(5)
elif 1200<=x<1400:
    print(4)
elif 1400<=x<1600:
    print(3)
elif 1600<=x<1800:
    print(2)
elif 1800<=x<2000:
    print(1)

Submission status: Accepted

Solution code:
n = int(input())

ans = n//100

if ans <= 5:
    print(8)
    exit()
elif ans >= 6 and ans <= 7:
    print(7)
    exit()
elif ans >= 8 and ans <= 9:
    print(6)
    exit()
elif ans >= 10 and ans <= 11:
    print(5)
    exit()
elif ans >= 12 and ans <= 13:
    print(4)
    exit()
elif ans >= 14 and ans <= 15:
    print(3)
    exit()
elif ans >= 16 and ans <= 17:
    print(2)
    exit()
elif ans >= 18 and ans <= 19:
    print(1)
    exit()