SP28270 BIPCSMR16 - Team Building

Description

To make competitive programmers of BUBT, authority decide to take regular programming contest. To make this contest more competitive and fruitful there are some rules given to balance a team: 1\. Only 1st , 2nd and 3rd year student can participate. 2\. A team must have three members. 3\. All the member cannot be from same year. You need to find out the maximum number of teams can build up according to given rules.

Input Format

The first line of input contain an integer T (1

Output Format

You need to find out the maximum number of teams can build up according to given rules.