#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
using namespace std;

int main(){
    int p ,q;
    int m,n;
    cin>>p>>q;
    m = p & q;
    int i = 0;
    int k = 0;
    
    while(m > 0)
    {
        i++; 
        if(m % 2 > 0)
        {
            if(k == 0)
                cout<<i; 
            else
                cout<<' '<<i; 
            k++;
        }
        m = m /2 ;
    }
    if(k==0)
    {
        cout<<'0'; 
    }
    if(k>=2)
    {
        cout<<endl<<"Open"<<endl;
    }
    else
    {
        
        cout<<endl<<"Close"<<endl;
    }
    
    return 0;
//    cout<<setiosflags(ios::fixed)<<setprecision(4)<<s<<endl;
//    cout<< setiosflags(ios::fixed)<<setprecision(4) <<c<<endl; 
}

 

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2021-10-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-27
  • 2021-04-30
  • 2021-08-03
  • 2021-10-09
  • 2021-12-12
  • 2022-01-28
相关资源
相似解决方案