For this Question: In this season of love, everyone wants to surprise each other. 
You are also super excited and you wish to buy roses of 3 different colors. You always buy roses in order, white, yellow, red.
So if you buy 7 roses, they will be "white, yellow, red, white, yellow, red, white".

You need to find the number of yellow roses that you will buy?The only line of input contains a single integer, N, the number of roses that you will buy.

Constraints
1 <= N <= 1000Output a single integer, the number of yellow roses.Sample Input 1
2

Sample Output 1
1

Sample Input 2
8

Sample Ouput 2
3

Explanation;-
testcase1;- 2 flower will be white,yellow
so number of yellow flower is 1, I have written this Solution Code: 
import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int ans = n/3;
		if(n%3==2){ans++;}
		System.out.print(ans);
	
	

}	    


}, In this Programming Language: Java, Now tell me if this Code is compilable or not?