Problem:


Score : 100 points

Problem Statement

There are N students in a school.

We will divide these students into some groups, and in each group they will discuss some themes.

You think that groups consisting of two or less students cannot have an effective discussion, so you want to have as many groups consisting of three or more students as possible.

Divide the students so that the number of groups consisting of three or more students is maximized.

Constraints

1 \leq N \leq 1000

All input values are integers.

Input

Input is given from Standard Input in the following format:

N

Output

If you can form at most x groups consisting of three or more students, print x.

Sample Input 1

8

Sample Output 1

2

For example, you can form a group of three students and another of five students.

Sample Input 2

2

Sample Output 2

0

Sometimes you cannot form any group consisting of three or more students, regardless of how you divide the students.

Sample Input 3

9

Sample Output 3

3



Sample input:
8


Sample output:
2

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
INF = float("inf")
import sys
sys.setrecursionlimit(10000)


def solve(N):
    return N // 3


def main():
    N = int(input())
    print(solve(N))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=input()
N=int(N)
answer = int(N/3)
print(answer)

Submission status: Accepted

Solution code:
from math import floor

N=int(input())
x=floor(N/3)
print(x)

Submission status: Accepted

Solution code:
def main():
    N = int(input() )
    result = int(N / 3)
    print(result)
    
if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

with sys.stdin as f:
    s_input = f.read()

    n = int(s_input)
    
    print(n // 3)
        
sys.exit(0)

Submission status: Accepted

Solution code:
import numpy as np

N = int(input())

print(int(np.floor(N/3)))

Submission status: Accepted

Solution code:
x = input()
y = int(x)
print(y // 3)

Submission status: Accepted

Solution code:
N = int(raw_input())
a = N/3
print a

Submission status: Accepted

Solution code:
N=int(input())
print (int(N/3))

Submission status: Accepted

Solution code:
print( (int(input()))//3)

Submission status: Accepted

Solution code:
#abc089a

n=int(raw_input())
res=n/3
print res

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import math
if __name__ == "__main__":
    n = int(input())
    print(math.floor(n/3))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
N = int(input())
# グループ数の計算
g = N // 3
# 出力
print("{}".format(g))

Submission status: Accepted

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

if 1 <= n <= 1000:
    x = n/3
    x = math.floor(x)
    print(x)

Submission status: Accepted

Solution code:
x = int(input())
y = int(x/3)
print(y)

Submission status: Accepted

Solution code:
import math

N = float(input())
print(math.floor(N / 3))

Submission status: Accepted

Solution code:
print input() / 3

Submission status: Accepted

Solution code:
import math
import numpy as np
from operator import mul

# 整数Nを桁ごとのリストにする
# l = [int(x) for x in list(str(N))]

# リストliから重複を削除したリストli_uniqを作成
#li_uniq = []
#for i in li:
#    if x not in li_uniq:
#        li_uniq.append(x)

# 複数行のinput - list版
#list = [list(map(int, input().split())) for i in range(N)]
# 複数行のinput - dictionary版
# key = a, value = b
#for i in range(N):
#    a, b = map(int, input().split())
#    dict[a] = b


N = int(input())
x = math.floor(N/3)
print(x)

Submission status: Accepted

Solution code:
if __name__ =='__main__':
    N = int(input())

    print(N // 3)

Submission status: Accepted

Solution code:
n = int(input())
b = 0
for a in range(n):
    if n  > 2:
        b += 1
    n -= 3
print(b)

Submission status: Accepted

Solution code:
#coding:utf-8
n = int(input())
print(int(n/3))

Submission status: Accepted

Solution code:
a = int(raw_input())
m = int(a / 3)
print(m)

Submission status: Accepted

Solution code:
ip = int(input())

ans = ip / 3
print(int(ans))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
print(int(input())//3)

Submission status: Accepted

Solution code:
N=int(input())
i=0
while N>=3:
	N-=3
	i+=1
print(i)

Submission status: Accepted

Solution code:
def main():
    N = int(input().strip())
    ret = N // 3
    return ret
if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
N = int(raw_input())

k = N / 3

print k

Submission status: Accepted

Solution code:
def solve():
    print(int(input())//3)
    
solve()

Submission status: Accepted

Solution code:
#http://abc089.contest.atcoder.jp/
# -*- coding: utf-8 -*-

n = int(input())

print( n//3 )

Submission status: Accepted

Solution code:
n = int(input())
group = 0
if n%3==0:
    group = n/3
elif n%3==1:
    group = (n-1)/3
else:
    group = (n-2)/3
print(int(group))

Submission status: Accepted

Solution code:
N = int(input())
out = N // 3
print(out)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())                                                                                                                    

print(n // 3)

Submission status: Accepted

Solution code:
n = int(input())
print (n//3)

Submission status: Accepted

Solution code:
N = input()
x = int(N) / 3
print(int(x))

Submission status: Accepted

Solution code:
N = int(input())
Num_of_Group = int(N/3)
print(Num_of_Group)

Submission status: Accepted

Solution code:
N = int(input())
group = N / 3
print(int(group))

Submission status: Accepted

Solution code:
N = int(input())
print(N/3)

Submission status: Accepted

Solution code:
n = int(input())
a = int(n/3)
print(a)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = int(raw_input())
print (a/3)

Submission status: Accepted

Solution code:
n = int(input())

if n < 3:
    print(0)
else:
    print(n // 3)

Submission status: Accepted

Solution code:
N = int(input())
s = 1
while N >= 6:
    N -= 3
    s += 1
if N < 3:
    s = 0
print(s)

Submission status: Accepted

Solution code:
N = int(input())						# 5

print(N//3)

Submission status: Accepted

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


def main():
    print(int(input()) // 3)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    students = int(input())

    group_count = int(students / 3)
    print(group_count)

Submission status: Accepted

Solution code:
n=int(input())
print(int(n/3))

Submission status: Accepted

Solution code:
print int(input())//3

Submission status: Accepted

Solution code:
num=int(input())

if num<=2:
    print(0)
elif num%3==0:
    print(num//3)
elif num%3==1:
    print(num//3)
else:
    print(num//3)

Submission status: Accepted

Solution code:
N = int(input())
ans =0
if N<=2:
    print('0')
else:
    ans=N//3
    print(ans)

Submission status: Accepted

Solution code:
N = int(input())

quo = N // 3

print(quo)

Submission status: Accepted

Solution code:
N=int(input())

if N<3:
    A = 0
else :
    A = N//3

print(A)

Submission status: Accepted

Solution code:
n=int(input())
a=n%3
b=n-a
c=b//3
print(c)

Submission status: Accepted

Solution code:
n = 0

n = input()

ans = 0

ans = n/3

print(ans)

Submission status: Accepted

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

a = int(input())

if a < 2:
    print(0)
elif a%3 == 0:
    print(int(a/3))
elif a%3 == 1:
    print(int(a/3))
else:
    print(int(a/3))

Submission status: Accepted

Solution code:
N = int(input())
i = 0
while N >= 2:
    N = N - 3
    if N >= 0:
        i = i + 1
print(i)

Submission status: Accepted

Solution code:
print  int(raw_input()) / 3

Submission status: Accepted

Solution code:
import numpy as np
import scipy as sp

N = int(input())

a = N // 3

print(a)

Submission status: Accepted

Solution code:
n = int(input())
out = int(n / 3)
print(out)

Submission status: Accepted

Solution code:
n = input()
print (n/3)

Submission status: Accepted

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

X = input()
print X//3

Submission status: Accepted

Solution code:
N=int(raw_input())

print N/3

Submission status: Accepted

Solution code:
import math

n = int(input())
d = n / 3

if d == 0:
    print('0')
else:
    print(math.floor(d))

Submission status: Accepted

Solution code:
N = int(input())
if N % 3 == 0:
    print(int(N/3))
else:
    print(int(N//3))

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    cnt = 0
    cnt = N // 3
    #if((N%3)!=0):
     #   cnt = cnt + 1
    print(cnt)
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    N = int(input())
    print (N // 3)

Submission status: Accepted

Solution code:
X = int(input())
print(int(X/3))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = int(raw_input())
print (a/3)

Submission status: Accepted

Solution code:
n=int(input())
if n<=2:
    print(0)
else:
    print(n//3)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    n = int(input())
    result = int(n / 3)
    print(result)

Submission status: Accepted

Solution code:
N = int(input())
Ans = N // 3

print(Ans)

Submission status: Accepted

Solution code:
#
N = int(input())

#
if N<3:
    print(0)
else:
    print(N//3)

Submission status: Accepted

Solution code:
n=int(input())
print (int(((n-n%3)/3)))

Submission status: Accepted

Solution code:
n = int(input())

if n <= 2:
    print(0)
else:
    print(int(n/3))

Submission status: Accepted

Solution code:
N = int(input())
print(int((N-N%3)/3))

Submission status: Accepted

Solution code:
N = int(input())

if N > 2:
    print(N//3)

else:
    print(0)

Submission status: Accepted

Solution code:
n = int(input())
if n % 3 == 0:
    g = int(n/3)
elif n % 3 == 1:
    g = int(n//3)
elif n % 3 == 2:
    g = int(n//3)
if n == 1:
    g = 0
print(g)

Submission status: Accepted

Solution code:
n=int(input())
a=0
a=n//3
print(a)

Submission status: Accepted

Solution code:
from math import *

n = int(input())
a = ceil(n // 3)
print(a)

Submission status: Accepted

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

A=N%3
if A>3:
    print(0)
else:
    B=(N-A)/3
    print(int(B))

Submission status: Accepted

Solution code:
n = input()

out = int(int(n)/3)
print(out)

Submission status: Accepted

Solution code:
students = int(input())

print(students // 3)

Submission status: Accepted

Solution code:
n = int(input())

i = n // 3
print(i)

Submission status: Accepted

Solution code:
n = input()
N = int(n)
ans = N // 3

print(ans)

Submission status: Accepted

Solution code:
_num = int(input())
print(_num // 3)

Submission status: Accepted

Solution code:
n=int(input())
print(int(n//3))

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    print(N // 3)

main()

Submission status: Accepted

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

if __name__ == "__main__":
    N = int(input())
    print(int(math.floor(N/3)))

Submission status: Accepted

Solution code:
import math
S = int(input())
ans=math.floor(S/3)
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
if n < 3:
    print(0)
else:
    print(n // 3)

Submission status: Accepted

Solution code:
N = int(input())
x = int((N / 3))
print(x)

Submission status: Accepted

Solution code:
import random
import numpy
import sys
import math

N=float(input()) #人数
print(math.floor(N/3))

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    N = int(input())
    ans = N // 3
    print(ans)

Submission status: Accepted

Solution code:
n = int(input())
x = n // 3
print(x)

Submission status: Accepted

Solution code:
num=int(input(''))
print(num//3)

Submission status: Accepted

Solution code:
a = int(input())

print(a // 3 if a > 3  else 0)

Submission status: Accepted

Solution code:
n=int(input())
p=n//3
print(p)

Submission status: Accepted

Solution code:
n = int(input())

count = 0

if n <= 2:
    print(count)
else:
    while n >= 3:
        n -= 3
        count += 1
    print(count)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# 出力
print(int(a/3))

Submission status: Accepted

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

print(n//3)

Submission status: Accepted

Solution code:
N=int(input())
g=N//3
print(g)

Submission status: Accepted

Solution code:
print input()/3

Submission status: Accepted

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

import os
import sys
import math
import numpy as np


N = int(input())

print(int(N/3))

Submission status: Accepted

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

import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import random
import re
import string

N = int(input())
ans = 0
while N > 0:
    if N >= 6:
        ans += 1
        N -= 3
    elif N >= 3:
        ans += 1
        N = 0
    else:
        N = 0
print(ans)

Submission status: Accepted

Solution code:
import sys,collections;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
print(n//3)

Submission status: Accepted

Solution code:
n = int(input())

res = n // 3
print(res)

Submission status: Accepted

Solution code:
N = int(input())
group = int(N / 3)
print(group)

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    print(int(N/3))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    n = int(input())
    print(n // 3)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())
x = n // 3
print(int(x))

Submission status: Accepted

Solution code:
N = int(input())
a = N // 3
print(a)

Submission status: Accepted

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

    ans = N // 3
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

n = int(input()) 
print(n//3)

Submission status: Accepted

Solution code:
a = int(input().strip())
print(a // 3)

Submission status: Accepted

Solution code:
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
print(i1()//3)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Grouping 2
https://beta.atcoder.jp/contests/abc089/tasks/abc089_a

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    N = int(input())
    print(N//3)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
# a = map(int,input().split())
a = int(input())
# c = list(map(int, input().split()))

# ans = 0

# for i in range(N):
# if a > b:

ans = a//3
#
# print("Yes")
# print("No")
print(ans)

Submission status: Accepted

Solution code:
import sys
N=int(input())
print(N//3)

Submission status: Accepted

Solution code:
n = int(input())
print(n // 3)

Submission status: Accepted

Solution code:
print (lambda x:x/3)(input())

Submission status: Accepted

Solution code:
n = int(raw_input())
print n/3

Submission status: Accepted

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

M = int(input())

print(M//3)

Submission status: Accepted

Solution code:
n = int(input())

print(n //3)

Submission status: Accepted

Solution code:
N= int(input())
print(N//3)

Submission status: Accepted

Solution code:
print int(raw_input())//3

Submission status: Accepted

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

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    n = I()

    return n // 3


print(main())

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

print(ni()//3)

Submission status: Runtime Error

Solution code:
h, w, d = map(int, input().split())
arr = [0] * (h * w + 1)

a = [list(map(int, input().split())) for _ in range(h)]

for i in range(h):
    for j in range(w):
        s = a[i][j]
        arr[s] = (i, j)

q = int(input())
lr = [list(map(int, input().split())) for _ in range(q)]

cnt = h * w
result = [[0] for _ in range(d)]
for i in range(d):
    l = i
    score = 0
    while l + d <= cnt:
        if l == 0:
            result[i].append(score)
            l += d
            continue
        (ux, uy) = arr[l]
        (vx, vy) = arr[l + d]
        score += (abs(vx - ux) + abs(vy - uy))
        result[i].append(score)
        l += d


for l, r in lr:
    ans = result[l % d]
    print(ans[r // d] - ans[l // d])

Submission status: Runtime Error

Solution code:
a, b = (int(x) for x in input().split())
if a*b%2 == 0:
    print('Even')
else:
    print('Odd')

Submission status: Runtime Error

Solution code:
N = int(input())

x == N // 3

print(x)

Submission status: Runtime Error

Solution code:
#生徒の人数を取得
N = int(input())
 
# 生徒の人数を3で割った商の小数点以下を切り捨てた数値を変数に格納
groupnum = math.floor(N / 3)
 
# 最大のグループ数の出力
print(groupnum)

Submission status: Runtime Error

Solution code:
#生徒の人数を取得
N = int(input())

# 生徒の人数を3で割った商の小数点以下を切り捨てた数値を変数に格納
groupnum = math.trunc(N / 3)

# 最大のグループ数の出力
print(groupnum)

Submission status: Runtime Error

Solution code:
N= map(int,input().split())

if N=

Submission status: Runtime Error

Solution code:
N = int(input())

if N>=3:  　　　　　   #生徒数が３人以上が必須条件
    print(int(N/3))　 #生徒数を最低条件の３人で割る
else:
    print(0)

Submission status: Runtime Error

Solution code:
N=int(input())
name=[]
for i in range(N):
  name.append(input())
M=0
A=0
R=0
C=0
H=0
letters=['M','A','R','C','H']
for i in range(N):
  for j in letters:
    if name[i][0]==j:
      if j=='M':
        M+=1
      elif j=='A':
        A+=1
      elif j=='R':
        R+=1
      elif j=='C':
        C+=1
      elif j=='H':
        H+=1
if M==0:
  M+=1
if A==0:
  A+=1
if C==0:
  C+=1
if R==0:
  R+=1
if H==0:
  H+=1
print(M*A*C*R*H)

Submission status: Runtime Error

Solution code:
N=int(input())
name=[]
for i in range(N):
  name.append(input())
M=0
A=0
R=0
C=0
H=0
letters=['M','A','R','C','H']
for i in range(N):
  for j in letters:
    if name[i][0]==j:
      if j=='M':
        M+=1
      elif j=='A':
        A+=1
      elif j=='R':
        R+=1
      elif j=='C':
        C+=1
      elif j=='H':
        H+=1
kazu=!
if M==0:
  M+=1
if A==0:
  A+=1
if C==0:
  C+=1
if R==0:
  R+=1
if H==0:
  H+=1
print(M*A*C*R*H)

Submission status: Runtime Error

Solution code:
print(input()//3)

Submission status: Runtime Error

Solution code:
n=input()
print(str(n//3))

Submission status: Runtime Error

Solution code:
N=int(intput())

print(N//3)

Submission status: Runtime Error

Solution code:
n = map(int, input())
print(n // 3)

Submission status: Runtime Error

Solution code:
n=input()
print(n//3)

Submission status: Runtime Error

Solution code:
print(int(input)//3)

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input().split())
s = set(s)
print(s)
if len(s) == 3:
    print('Three')
else:
    print('Four')

Submission status: Runtime Error

Solution code:
n = int(input())
s = [input().split]
if len(set(s)) == 3:
    print('Three')
else:
    print('Four')

Submission status: Runtime Error

Solution code:
import numpy as np
from scipy.special import comb

n = int(input())
a = []
for _ in range(n):
    b = list(map(str,input()))
    a.append(b)

ans = [0]*5

for i in range(n):
    tmp = a[i][0]
    if tmp == "M":
        ans[0] += 1
    elif tmp == "A":
        ans[1] += 1
    elif tmp == "R":
        ans[2] += 1
    elif tmp == "C":
        ans[3] += 1
    elif tmp == "H":
        ans[4] += 1
    else:
        continue

cnt = []
for j in range(len(ans)):
    if ans[j] == 0:
        continue
    else:
        cnt.append(ans[j])
l = 0
for k in range(len(cnt)):
    if cnt[k] > 1:
        l += cnt[k] - 1

cnt.sort()
if len(cnt) <= 2:
    print(0)
elif len(cnt) == 3:
    print(np.prod(cnt))
elif len(cnt) == 4:
    print((cnt[0]*cnt[1]*cnt[2])+(3*cnt[3]))
else:
    print((cnt[0]*cnt[1]*cnt[2])+(3*cnt[3])+(6*cnt[4]))

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
print(S)
if len(set(S)) == 3:
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
n = input()
print(n//3)

Submission status: Runtime Error

Solution code:
N=int(input())
print(X//3)

Submission status: Runtime Error

Solution code:
from heapq import heappush, heappop
from itertools import permutations, accumulate, combinations
from math import pi, gcd, ceil, floor
import numpy as np
from collections import defaultdict, deque
from operator import itemgetter
from bisect import bisect_left, bisect_right, insort_left, insort_right
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(10 ** 6)
# MOD = 10 ** 9 + 7
# INF = float("inf")



def main():
    n = int(input())
    print(n // 3)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
N=int(input())
S=[input() for _ in range(N)]

MARCH=[0]*5
for i in range(N):
  if S[i][0]=="M":
    MARCH[0]+=1
  elif S[i][0]=="A":
    MARCH[1]+=1
  elif S[i][0]=="R":
    MARCH[2]+=1
  elif S[i][0]=="C":
    MARCH[3]+=1
  elif S[i][0]=="H":
    MARCH[4]+=1

ans=0
for i in range(3):
  for j in range(i+1,4):
    for k in range(j+1,5):
      ans+=MARCH[i]*MARCH[j]*MARCH[k]
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input)
print(N//3)

Submission status: Runtime Error

Solution code:
n=int(input())
print('{:.0f}'.format(math.floor(n/3)))

Submission status: Runtime Error

Solution code:
print(int(input()//3)

Submission status: Runtime Error

Solution code:
a = int(input())
L = list(map(str, input().split()))
b = 'Three'
for i in range(a):
  if L[i] == 'Y':
    b = 'Four'
    break
print(b)

Submission status: Runtime Error

Solution code:
N = int(input())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "Y":
    flag = "syurui_4"
if flag == "syurui_3":
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
n = int(input())
cnt = 0
while n >= 3:
　　　　n -=3
      cnt+=1
print()

Submission status: Runtime Error

Solution code:
N = int(input())
ans N//3
print(ans)

Submission status: Runtime Error

Solution code:
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
   		int a = sc.nextInt();	
		int b;
		b=a/3;
		System.out.print(b);

    }
}

Submission status: Runtime Error

Solution code:
n = int(input())
s = input().split()

if "Y" in s:
    print("Four")
else:
    print("Three")

Submission status: Runtime Error

Solution code:
 int(input())
print(n // 3)

Submission status: Runtime Error

Solution code:
n=int(input())
print(x//3)

Submission status: Runtime Error

Solution code:
N,A,B = map(int,input().split())

if (B - A) % 2 == 0:
  print((B - A) // 2)
else:
  if 
  print(min(B - 1 , N - A))

Submission status: Runtime Error

Solution code:
N=int(input())
N+=2
ans=N//3
ans-=
print(ans)

Submission status: Runtime Error

Solution code:
print(int(input() // 3)

Submission status: Runtime Error

Solution code:
N=int(input())
S=input().split()
print('Three' if len(set(S))==3 else 'Four')

Submission status: Runtime Error

Solution code:
N=int(input())
M,A,R,C,H=0,0,0,0,0
for i in range(N):
    s=input()[0]
    if s=='M':
        M+=1
    elif s=='A':
        A+=1
    elif s=='R':
        R+=1
    elif s=='C':
        C+=1
    elif s=='H':
        H+=1

print(M*A*R + M*A*C + M*A*H + M*R*C + M*R*H + \
      M*C*H + A*R*C + A*R*H + A*C*H + R*C*H)

Submission status: Runtime Error

Solution code:
N = input()
print(N//3)

Submission status: Runtime Error

Solution code:
C = [input() for _ in range(3)]
ans = C[0][0] + C[1][1] + C[2][2]
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
n=[input()[0] for _ in range(N)]
m,a,r,c,h=n.count("M"),n.count("A"),n.count("R"),n.count("C"),n.count("H")
print(m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h)

Submission status: Runtime Error

Solution code:
N=int(input())
name=[input()[0] for _ in range(N)]
m,a,r,c,h=name.count("M"),name.count("A"),name.count("R"),name.count("C"),name.count("H")
print(m*a*(r+c+h)+m*r*(c+h)+m*c*h+a*r*(c+h)+a*c*h+r*c*h)

Submission status: Runtime Error

Solution code:
n=input()
print(n//3)

Submission status: Runtime Error

Solution code:
print(n//3)

Submission status: Runtime Error

Solution code:
import sys
input=sys.stdin.readline
h,w,d=map(int,input().split())
nums=[[0 for s in range(w)] for i in range(h)]
gya=[[0,0] for i in range(h*w)]
for i in range(h):
    nums[i]=list(map(int,input().split()))
    for j in range(w):
        gya[nums[i][j]-1]=[i,j]
q=int(input())
for i in range(q):
    l,r=map(int,input().split())
    m=(r-l)//d
    ans=0
    for j in range(1,m+1):
        ans+=abs(gya[l+j*d-1][0]-gya[l+d*(j-1)-1][0])+abs(gya[l+j*d-1][1]-gya[l+d*(j-1)-1][1])
    print(ans)

Submission status: Runtime Error

Solution code:
print(n / 3)

Submission status: Runtime Error

Solution code:
H, W, D = map(int, input().split())
M = [(-1, -1)]*(H*W+1)
A = []
for i in range(H):
  As = list(map(int, input().split()))
  for j in range(W):
    a = As[j]
    M[a] = (i, j)
  A.append(As)
#print(M)
Dist = [0]*(H*W+1)
for k in range(0, H*W-D+1):
  i, j = M[k]
  x, y = M[k+D]
  Dist[k+D] = Dist[k]+abs(x-i)+abs(y-j)
Q = int(input())
for i in range(Q):
  L, R = map(int, input().split())
  r = Dist[R]-Dist[L]
  print(r)

Submission status: Runtime Error

Solution code:
from collections import Counter

N = int(input())
S = list(map(str,input().split()))
counter = Counter(S)

res = 0
for s in counter.values():
    res += s
if s == 3:
    print("Three")
else:
    print("Four")

Submission status: Runtime Error

Solution code:
N = int(input)
print(N // 3)

Submission status: Runtime Error

Solution code:
N = int(input())
s = set(map(str,input().split()))
if(len(s) == 3):
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
print(input() // 3)

Submission status: Runtime Error

Solution code:
n = int(input())

print(m // 3)

Submission status: Runtime Error

Solution code:
x=int,input()
print(x//3)

Submission status: Runtime Error

Solution code:
a = map(int,input())
a % 3 = b
print((a-b)/3)

Submission status: Runtime Error

Solution code:
s = [input() for i in range(3)]
print(s[0][0], s[1][1], s[2][2], sep="")

Submission status: Runtime Error

Solution code:
N = iot(input())
print(N//3)

Submission status: Runtime Error

Solution code:
N = int(ipnut())

print(3 // N)

Submission status: Runtime Error

Solution code:
print (int(input()//3)

Submission status: Runtime Error

Solution code:
print(int(input()/3))

Submission status: Runtime Error

Solution code:
n = int(input())
fukuro = list(map(str,input().split()))
types = 'Three'
for i in range(len(fukuro)):
  if fukuro[i] == 'Y':
    types = 'Four'
    break
print(types)

Submission status: Runtime Error

Solution code:
print(int(int(input)/3))

Submission status: Runtime Error

Solution code:
a = int(input)
print(a//3)

Submission status: Runtime Error

Solution code:
print(int(input()//3))

Submission status: Runtime Error

Solution code:
import sys
import math
import numpy as np
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, input().split()))
ns = lambda: input()
H,W,D = na()
f= [list(map(int,input().split())) for i in range(H)]
#print(f)
f = np.array(f)

Q=int(input())
#累積和を求める
li = [0]*(H*W+2)
#print(H*W+2)
for i in range(1,D+1):
    #print('i=',i)
    li[i]=0
    h_=int(np.where(f==i)[0])
    w_=int(np.where(f==i)[1])
    for j in range(i+D,H*W+1,D):
        #print(j)
        h_n=int(np.where(f==j)[0])
        w_n=int(np.where(f==j)[1])
        li[j] = li[j-D]+abs(h_ - h_n)+abs(w_ - w_n)
        h_ = h_n
        w_=w_n
        
        #print("diff",h_,w_)

        #print(j)
    
#print(li)
'''for i in range(1,26,4):
    print(i,li[i])
'''
# ここから計算
L = 17
R=25
#print(li[R]-li[L])
for i in range(Q):
    L,R = na()
    print(li[R]-li[L])

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(input().split())
if "Y" in s:
	print("Four")
else:
	print("Three")

Submission status: Runtime Error

Solution code:
  n = int(input())
  print(n//3)

Submission status: Runtime Error

Solution code:
  n = int(input())
  print((n - n  % 3)//3)

Submission status: Runtime Error

Solution code:
n = int()  n = int(input())
  print((n - n  % 3)//3)

Submission status: Runtime Error

Solution code:
N = int(input())
 
S = list(map(int, input().split()))
 
color = [0, 0, 0, 0]
 
for s in S:
  if (color.count(0) == 0):
    print("Four")
    break
  
  if (s == "P"):
    color[0] += 1
  elif (s == "G"):
    color[1] += 1
  elif (s == "W"):
    color[2] += 1
  else:
    color[3] += 1
  
if (color.count(0) == 1):
  print(Three)

Submission status: Runtime Error

Solution code:
N-int(input())
print(N//3)

Submission status: Runtime Error

Solution code:
num = int(input())
colors = map(str, input().split())

if len(set(colors)) == 3:
    print('Three')
else:
    print('Four')

Submission status: Runtime Error

Solution code:
N=int(input())
s=list(map(str,input().split()))
print('Three' if s.count('Y')==0 else 'Four')

Submission status: Runtime Error

Solution code:
n = input()
print(n / 3)

Submission status: Runtime Error

Solution code:
n = input()
print(n // 3)

Submission status: Runtime Error

Solution code:
print(int(input())%%3)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
if N > 3:
  print("{}".format(int(N // 3) + 1)
elif N <= 3:
        print(0)

Submission status: Runtime Error

Solution code:
from collections import defaultdict
nametag = defaultdict(lambda: 0)
N = int(input())
for _ in range(N):
    s = input()
    if s[0] == 'M':
        nametag['M'] += 1
    if s[0] == 'A':
        nametag['A'] += 1
    if s[0] == 'R':
        nametag['R'] += 1
    if s[0] == 'C':
        nametag['C'] += 1
    if s[0] == 'H':
        nametag['H'] += 1
ans = 0
march = list(nametag.keys())
for i in march:
    for j in march:
        for k in march:
            if i == k or j == k or i == j:
                continue
            ans += nametag[i]*nametag[j]*nametag[k]
print(ans//6)

Submission status: Runtime Error

Solution code:
n = int(input())
S = list(input().split())
c = "kara"
for i in range(n):
	if S[i] == "Y":
		c = "Four"
	else :
		c = "Three"
	
print(c)

Submission status: Runtime Error

Solution code:
N = raw_input()
MIN_GNUM = 3
print N / MIN_GNUM

Submission status: Runtime Error

Solution code:
N = int(ipnut())

ans = N // 3
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
if N % 3 => 1:
	print((N // 3 ) + 1)
else:
	print(N//3)