fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long i;
  6. cin >> i;
  7. if (i<=1)
  8. return 0;
  9. while (i % 2 == 0){
  10. i = i/2;
  11. }
  12. if (i==1){
  13. cout <<"TAK"<< endl;
  14. }
  15. else{
  16. cout <<"NIE"<< endl;
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5288KB
stdin
1234513
stdout
NIE