// editor1
import java.util.*;
class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        if(k>0&&(k&(k-1)==0)){
            System.out.println(k+" is a power of two ");
        }
        else  {
            System.out.println(k+" is not a power of two ");
        }
    }
}