#include <iostream>
using namespace std;
int main() {
for (struct {size_t i; bool ok;} s = {0, true}; s.ok; ++s.i) {
s.ok = s.i < 10;
cout << s.i;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglmb3IgKHN0cnVjdCB7c2l6ZV90IGk7IGJvb2wgb2s7fSBzID0gezAsIHRydWV9OyBzLm9rOyArK3MuaSkgewogICAgCXMub2sgPSBzLmkgPCAxMDsKICAgIAljb3V0IDw8IHMuaTsKCX0KCXJldHVybiAwOwp9