import java.util.*;
import java.lang.Math;
public class amypo{
    public static void main(String[] args)
    {
        Scanner scan=new Scanner(System.in);
        int a=0,b=0;
        a=scan.nextInt();
        if(a>0&&(a&(a-1))==0)
        {
            System.out.println(a," is a power of two");
        }
        else
        {
            System.out.println(a," is not a power of two");

        }
    }
}