#include <iostream>
using std::cin; using std::cout; using std::endl; using std::cerr;
#include <string>
using std::string;
int main() {
int i = 10;
auto isZ = [&]() -> bool{ return i != 0 ? --i, false : true;};
while (!isZ())
cout << i << " ";
cout << endl;
cout <<isZ()<< " " << i << endl;
}