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-----
8

-----Sample Output-----
2

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

Source: atcoder | Difficulty: EASY


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


import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):

	def assertIO(self, input, output):
		(stdout, stdin) = (sys.stdout, sys.stdin)
		(sys.stdout, sys.stdin) = (StringIO(), StringIO(input))
		resolve()
		sys.stdout.seek(0)
		out = sys.stdout.read()[:-1]
		(sys.stdout, sys.stdin) = (stdout, stdin)
		self.assertEqual(out, output)

	def test_入力例_1(self):
		input = '8'
		output = '2'
		self.assertIO(input, output)

	def test_入力例_2(self):
		input = '2'
		output = '0'
		self.assertIO(input, output)

	def test_入力例_3(self):
		input = '9'
		output = '3'
		self.assertIO(input, output)

def resolve():
	N = int(input())
	print(N // 3)

def __starting_point():
	resolve()
__starting_point()


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


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


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


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


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


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


print(int(input()) // 3)


input_num = int(input())
result = int(input_num / 3)
print(result)


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


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


import math
N = int(input())
answer = math.floor(N / 3)
if answer >= 1:
	print(answer)
else:
	print(0)


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


x = input()
seito = int(x)
sum = seito // 3
print(sum)


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


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


N = input()
if int(N) >= 3:
	num = int(N) / 3
	print(int(num))
else:
	print('0')


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


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


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