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: Wrong Answer

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

N = int(input())

ret = 0
for i in range(3, N):
    if N % i == 0:
        ret = max(N//i, ret)

print(ret)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N*(N+1)/2)

Submission status: Wrong Answer

Solution code:
# 089A

# N人(数値）：標準入力
N = int(input())

# N人の生徒たちを上手く分けて、3人以上の数を最大化する
# N人を3で除法した数値を出力する
# 除法の解の小数点以下を切り捨て

print(round(N / 3))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
if a//2>=1:
  print(a//2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#N人の生徒
#一つのグループを3人以上、グループの数を最大化する

#標準入力
N = int(input())
#x個のグループ
x = N % 3
print(x)

Submission status: Wrong Answer

Solution code:
# A - Grouping 2

N = int(input())


if N % 3 == 0:
    answer = N / 3
    print(answer)
else:
    answer = N // 3
    print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input('整数を入力してね>'))
X = N//3
print(X)

Submission status: Wrong Answer

Solution code:
print('人数を入力するとグループ数が表示されます >')
N = int(input())

answer = int(N / 3)
print(answer)

Submission status: Wrong Answer

Solution code:
# 入力
a = int(input('生徒の人数 >'))

# 処理
answer = a // 3

# 出力
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
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 zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

print(INT() / 3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
res = int(N / 3)
mb = N/3
if mb - res > 0:
  res += 1
if N <=2:
  res = 0
print(res)

Submission status: Wrong Answer

Solution code:
N = int(input())
res = int(N / 3)
mb = N/3
if mb - res > 0:
  res += 1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
N = int(input())
if not (1 <= N <= 100):
    sys.exit()

print(math.floor(N/3))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if N>=2:
	print("0")
else:
	print(N%3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
number_sum = sum([int(i) for i in str(N)])
print("Yes") if N % number_sum == 0 else print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
number_sum = sum([int(i) for i in str(N)])
print('Yes') if N % number_sum == 0 else print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Gr_num = 3 #○人ずつのグループを作りたい

N_div = N // Gr_num
N_rem = N % Gr_num

if N >= 3:
    if N_rem == 0:
        print(N_div)
    elif N_rem > 0:
        print(N_div + 1)
elif N < 3:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0
while N > 5:
    N -= 3
    ans += 1

ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = int(input())
if num < 3:
  ans = 0
else:
  ans = num/3

Submission status: Wrong Answer

Solution code:
n = int(input())
if n < 3:
  print(0)
elif n%3 == 0:
  print(int(n/3))
elif n%3 >0:
  print(int(n//3)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
x = N % 3
print x

Submission status: Wrong Answer

Solution code:
print((int(input())+3-1)//3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 3 in (1, 2):
    print(n // 3 - 1)
else:
    print(n // 3)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 3 == 1:
    print(n // 3 - 1)
else:
    print(n // 3)

Submission status: Wrong Answer

Solution code:
print(int(input())>>1)

Submission status: Wrong Answer

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))

print(int(input())%3)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
print(math.ceil(n/3))

Submission status: Wrong Answer

Solution code:
x = int(input())
y = x -3
if y < 0:
  print(0)
else:
  print(2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = 13
if n % 3 == 0:
  print(n / 3)
else:
  print(int(n / 3))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 3 == 0:
  print(int(N/3))
else:
  print(int(N//3)-1)

Submission status: Wrong Answer

Solution code:
s = int(input())
if s<3:
  print(0)
elif s%3 == 0:
  print(s/3)
elif s%3 == 1:
  print((s//3))
else:
  print((s//3))

Submission status: Wrong Answer

Solution code:
s = int(input())
if s<3:
  print(0)

if s%3 == 0:
  print(s/3)
else:
  print((s//3))

Submission status: Wrong Answer

Solution code:
s = int(input())
if s<3:
  print(0)

if s%3 == 0:
  print(s/3)
elif s%3 == 1:
  print((s//3)+1)
else:
  print((s//3)+2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

print(-(-n//3) if n > 2 else 0)

Submission status: Wrong Answer

Solution code:
n = int(input())

print(n%3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

print(N % 3 if N > 2 else 0)

Submission status: Wrong Answer

Solution code:
import functools

import os

INF = float('inf')


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


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

n = inp()
import  math
print(math.ceil(n/3))

Submission status: Wrong Answer

Solution code:
N = int(input())

print(N / 3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n<3:
  print(0)
elif n%3 != 0:
  print(n-1)
else:
  print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
print(int(n / 3 - n % 3)) if n > 3 else print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
if N<3:
    n=0
else:
    n=math.ceil(N/3)
print(n)

Submission status: Wrong Answer

Solution code:
import itertools as i,collections as c;print(sum(p*q*r for p,q,r in i.combinations(c.Counter(s[0]*(s[0]in"MARCH")for s in open(0).readlines()[1:]).values(),3)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
N=int(input())
x=floor(N)
print(x)

Submission status: Wrong Answer

Solution code:
from math import ceil
N=int(input())
x=ceil(N/3)
print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
ans = math.floor(N)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

M = N/3


print(M)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
print(n//3 + (n%3 >0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

print(n/3)

Submission status: Wrong Answer

Solution code:
import math


N = int(input())

if (N % 3) == 0:
  print(N/3)
else:
  print(math.floor(N/3))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
while True:
    N = int(input())
    if N >= 1 and N <= 1000:
        break
if N < 3:
    print(0)
else:
    if N/3 > 3.0:
        print(int(N/3)+1)
    else:
        print(int(N/3))

Submission status: Wrong Answer

Solution code:
while True:
    N = int(input())
    if N >= 1 and N <= 1000:
        break

if N < 3:
    print(0)
else:
    if N/3 > 3.0:
        print(int(N/3)+1)
    else:
        print(int(N/3))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

group = N % 3

print(group)

Submission status: Wrong Answer

Solution code:
import re
import sys

if __name__ == '__main__':
    N = input()
    a = N / 2
    print a

Submission status: Wrong Answer

Solution code:
import re
import sys

if __name__ == '__main__':
    N = input()
    a = N / 2
    if N % 3 == 0:
        print a
    else:
        print a+1

Submission status: Wrong Answer

Solution code:
import re
import sys

if __name__ == '__main__':
    N = input()
    a = N / 3
    if N % 3 == 0:
        print a
    else:
        print a+1

Submission status: Wrong Answer

Solution code:
a = int(input())
def more_than_three(a):
    if a < 3:
        return 0
    else:
        return a//3
print(more_than_three(9))

Submission status: Wrong Answer

Solution code:
a = int(input())
def more_than_three(a):
    if a < 3:
        return 0
    else:
        return a//3
print(more_than_three(8))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
print(int(math.sqrt(n)) if n>2 else 0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def group(n):
    k = n % 3
    if k is 1:
        return (n - 2) // 3
    elif k is 2:
        return (n - 1) // 3
    else:
        return n // 3


N = int(input())

print(group(N))

Submission status: Wrong Answer

Solution code:
def group(n):
    g = n // 3
    k = n % 3
    if k is 1:
        return g - 1
    elif k is 2:
        return g - 2
    else:
        return g


N = int(input())

print(group(N))

Submission status: Wrong Answer

Solution code:
def group(n):
    g = int(n / 3)
    k = n % 3
    if k is 1 or k is 2:
        return g - 1
    else:
        return g


N = int(input())

print(group(N))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 3 == 2:
    x = (N - 2) // 3 - 1
elif N % 3 == 1:
    x = (N - 1) // 3 - 1
else:
    x = N // 3

print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input());print(n//3+(n%3!=0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

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.ceil(N/3)
print(x)

Submission status: Wrong Answer

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

print(b)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N<3:
  print(0)
else:
  i=3
  while i<=1000:
  	r=N%i
  	if r==0:
  		print(int(N/i));break;
  	else:
  		i+=1

Submission status: Wrong Answer

Solution code:
N = int(raw_input())

k = (N + 2) / 3

print k

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N in [1,2,3,4]:
    print(0)
elif N % 3 == 1:
    print(N//3 - 1)
else:
    print(N//3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num=int(input())

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

Submission status: Wrong Answer

Solution code:
num=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%3 == 0:
    A = N//3
elif N<3:
    A = 0
else :
    A = N//3 - 1

print(A)

Submission status: Wrong Answer

Solution code:
num=int(input())
if num<=2:
    print(0)
elif num%3==0:
    print(num/3)
elif num%3==1:
    print((num/3)+1)
else:
    print((num/3)+2)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%3 == 0:
    A = N//3
elif N<3:
    A = 0
elif N%3 == 1:
    A = N//3 - 1
elif N%3 == 2:
    A = N//3

print(A)

Submission status: Wrong Answer

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) - 1)
else:
    print(int(a/3))

Submission status: Wrong Answer

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) - 1)
else:
    print(int(a/3) - 1)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%3 == 0:
    A = N//3
elif N<3:
    A = 0
else:
    A = N//3 + 1

print(A)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%3 == 0:
    A = N//3
elif N<3:
    A = 0
else:
    A = N//8 + 1

print(A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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) - 1)
else:
    print(int(a/3) + 1)

Submission status: Wrong Answer

Solution code:
import collections
from pprint import pprint as pp

n = int(input())
d, m = divmod(n, 3)
if d > 0 and m != 0:
  d += 1
print(d)

Submission status: Wrong Answer

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

    grp, mod_ = divmod(N, 3)
    if mod_:
        print(grp + 1)
    else:
        print(grp)

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

print(n/3)

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

Solution code:
n=int(input())

count=0

while True:
    if n-3>=3:
        count+=1
    
    if n<3:
        print(count)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(int(input())//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())

print(n//3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

print(a // 3)

Submission status: Accepted

Solution code:
n=int(input())

print(n//3)

Submission status: Accepted

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

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()
print(int(n) // 3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number = int(input())

x = number // 3

print(x)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    N=ii()

    ans = 1
    while N >= 3:
        N -= 3
        ans += 1
    
    ans -= 1
    print(ans)






if __name__ == "__main__":
    main()

Submission status: Accepted

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

n = int(input())

print(n//3)

Submission status: Accepted

Solution code:
a = int(input())
print(a//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:
def main():
    n = int(input())
    x = n // 3
    print(x)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

ans = n//3
print(ans)

Submission status: Accepted

Solution code:
# Grouping 2

N = int(input())

if N < 1 or 1000 < N:
    print('数値が範囲外です')
elif N < 3:
    print(0)
else:
    print(N // 3)

Submission status: Accepted

Solution code:
N = int(input())

print(N // 3)

Submission status: Accepted

Solution code:
import math

N = int(input())

answer = math.floor(N/3)


if answer >= 1:
    print(answer)
else:
    print(0)

Submission status: Accepted

Solution code:
N = int(input())

x = N // 3

print(x)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
# N 人の生徒を分けて、 3 人以上のグループのを最大化
# 3人以上のグループを最大で ｘ 個つくれるとき、 ｘ を出力

# 入力値を数値に変換
N = int(input())

# 3で割った時の整数の商をｘとして出力
x = N // 3
print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int( input())

x = N // 3
 
print(x)

Submission status: Accepted

Solution code:
# ある学校には、N人の生徒がいます。
# 生徒たちをいくつかのグループに分け、グループごとにあるテーマについて話し合ってもらうこととなりました。
# あなたは、2人以下のグループだと効果的な話し合いが出来ないと考えており、なるだけ多くのグループを
# 3人以上にしたいです。生徒たちを上手く分けて、3人以上のグループの数を最大化してください。

# 標準入力から生徒数 N を取得する
input_num = int(input())

# 取得した N人から、3人以上のグループが最大数になるよう算出して出力する
result = int(input_num / 3)
print(result)

Submission status: Accepted

Solution code:
student_N = int(input())

print(student_N // 3)

Submission status: Accepted

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

Submission status: Accepted

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

answer = x // 3
print (answer)

Submission status: Accepted

Solution code:
N = int(input())

print(N//3)

Submission status: Accepted

Solution code:
N = int(input())

x = N // 3

print(x)

Submission status: Accepted

Solution code:
#089A

#1.入力をちゃんと受け取ること
x=input()
seito=int(x)

#2.結果を出力する
sum= seito//3
print(sum)

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 = int (input())

print (int(N/3))

Submission status: Accepted

Solution code:
# 1 <= N <= 1000 入力は整数のみ　N

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

Submission status: Accepted

Solution code:
# ある学校にN人の生徒がいます。
# 生徒たちをいくつかのグループに分け、グループごとにあるテーマについて話し合ってもらうこととなりました。
# あなたは、2人以下のグループだと効率的な話し合いが出来ないと考えており、なるだけおおくのグループを3人以上にしたいです。
# 生徒たちを上手く分けて、3人以上のグループの数を最大化してください。
# 1< N <1000
# 入力はすべて整数

N = int(input())
# 3人以上のグループを最大でx個作れるとき、xを出力せよ。

x = int(N // 3)

print(x)

Submission status: Accepted

Solution code:
n = int(input())

print(n // 3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 089A

# N人(数値）：標準入力
N = int(input())

# N人の生徒たちを上手く分けて、3人以上の数を最大化する
# N人を3で除法した数値を出力する
# 除法の解の小数点以下を切り捨て

print(int( N / 3 ))

Submission status: Accepted

Solution code:
N = int(input())

x = print(N // 3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 2人以下のグループNG、３人以上のグループにしたい

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

Submission status: Accepted

Solution code:

N=input()

if int(N) >= 3:
    num = int(N)/3
    print(int(num))

else:
    print('0')

Submission status: Accepted

Solution code:
N = int(input())

# 3 人以上のグループを最大で x 個作れるとき、x を出力
x = N // 3
print(x)

Submission status: Accepted

Solution code:
# ３人以上のグループをxで出力

N = int (input())

x = N // 3

print(x)

Submission status: Accepted

Solution code:
N = int(input())

print(int(N / 3))

Submission status: Accepted

Solution code:
N = int(input())

x = N // 3
print(x)

Submission status: Accepted

Solution code:
a=int(input())
if a//3>=1:
  print(a//3)
else:
  print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#AtCoder_abc089_a

#入力する整数を入力
N = int(input())

x= int( N / 3 )#intで整数化しないと小数点端数がでる
print(x)

Submission status: Accepted

Solution code:
# N人の生徒がいる
N = int( input() )

# 3人以上のグループの数を最大化
# つまり ３人のグループを最大数作る
# 最大数作るグループ数を x とする

x = int( N / 3 )

print( x )

Submission status: Accepted

Solution code:
N = int(input())

1 < N and N < 1000

print(N//3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Grouping 2
# https://atcoder.jp/contests/abc089/tasks/abc089_a

N = int(input())

result = int(N/3)

print(result)

Submission status: Accepted

Solution code:
n=input()


print(int(n)//3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

x = n // 3

print(x)

Submission status: Accepted

Solution code:
num = int(input())

num2 = num % 3

if num < 3:
    print('0')
elif num2 < 0:
    print(num // 3 + 1)
else:
    print(num // 3)

Submission status: Accepted

Solution code:
n = int(input())

print(n//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())

x=N//3

print(x)