#K48877. Groups of Three

    ID: 28518 Type: Default 1000ms 256MiB

Groups of Three

Groups of Three

You are given a single integer ( n ) representing the number of employees. Your task is to determine the maximum number of groups of three that can be formed and the number of employees left over who cannot be placed in any group. More formally, if ( g ) is the number of groups, then ( g = \lfloor \frac{n}{3} \rfloor ) and the remainder is ( r = n \mod 3 ).

For example, if ( n = 10 ), then you can form 3 complete groups and 1 employee will remain unassigned.

inputFormat

The input consists of a single integer ( n ) provided in standard input.

outputFormat

Output two integers separated by a space: the first is the maximum number of groups of three, and the second is the remainder of employees that cannot be grouped.## sample

9
3 0

</p>