import java.util.Scanner;

public class Div2
{
    public static void main(String[] args) 
    {
       Scanner input = new Scanner(System.in);
       
       int x = input.nextInt();
       
       if ( (x%2 == 0) && (x%3 == 0) )
          System.out.println("is divisible by BOTH 2 and by 3");
       else
          System.out.println("is not divisible by BOTH 2 and by 3");

    }
}
