fork(1) download
  1. // iostream is too mainstream
  2. #include <cstdio>
  3. // bitch please
  4. #include <iostream>
  5. #include <vector>
  6. #include <set>
  7. #include <map>
  8. #include <string>
  9. #include <queue>
  10. #include <stack>
  11. #include <algorithm>
  12. #include <iomanip>
  13. #define dibs reserve
  14. #define OVER9000 1234567890
  15. #define patkan 9
  16. #define tisic 47
  17. #define soclose 10e-7
  18. #define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
  19. #define chocolate win
  20. #define ff first
  21. #define ss second
  22. #define abs(x) ((x < 0)?-(x):(x))
  23. // mylittlepony
  24. using namespace std;
  25.  
  26. int main() {
  27. // freopen("jenga.in","r",stdin);
  28. int T;
  29. scanf(" %d",&T);
  30. for(int t =0; t < T; t++) {
  31. int N;
  32. scanf(" %d",&N);
  33. if(N%3 != 0) printf("Case %d: Bakkar\n",t+1);
  34. else printf("Case %d: Wahdan\n",t+1);}
  35. return 0;}
  36.  
  37. // look at my code
  38. // my code is amazing
Success #stdin #stdout 0s 3344KB
stdin
3
2
12
100
stdout
Case 1: Bakkar
Case 2: Wahdan
Case 3: Bakkar