#include <iostream>
using namespace std;
 
void foo(const int i) {
  cout << "foo(" << i <<")" << endl;
}
 
int main() {
  int c = 10;
  switch(c&3) while((c-=4)>=0) {
    foo(c); case 3:
    foo(c); case 2:
    foo(c); case 1:
    foo(c); case 0:;
  }
  return 0;
}