#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <fstream>
using namespace std;
void
printer (int i)
{
cout << setw (2) << i << ", ";
}
int
main ()
{
int mynumbers[] = { 8, 9, 7, 6, 4, 1 };
vector < int >v1 (mynumbers, mynumbers + 6);
fstream outfile ("output.txt", ios::trunc | ios::out);
int i = 0;
while (i > 1); //LINE I
{
outfile >> i;
i = v1[0];
v1.pop_back ();
}
outfile.close ();; //LINE II
for_each (v1.begin (), v1.end (), printer);
outfile.close ();
outfile.open ("output.txt");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKI2luY2x1ZGUgPHN0cmluZz4KCiNpbmNsdWRlIDx2ZWN0b3I+CgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKI2luY2x1ZGUgPGlvbWFuaXA+CgojaW5jbHVkZSA8ZnN0cmVhbT4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2b2lkCnByaW50ZXIgKGludCBpKQp7CgogIGNvdXQgPDwgc2V0dyAoMikgPDwgaSA8PCAiLCAiOwoKfQoKCmludAptYWluICgpCnsKCiAgaW50IG15bnVtYmVyc1tdID0geyA4LCA5LCA3LCA2LCA0LCAxIH07CgogIHZlY3RvciA8IGludCA+djEgKG15bnVtYmVycywgbXludW1iZXJzICsgNik7CgogIGZzdHJlYW0gb3V0ZmlsZSAoIm91dHB1dC50eHQiLCBpb3M6OnRydW5jIHwgaW9zOjpvdXQpOwoKICBpbnQgaSA9IDA7CgogIHdoaWxlIChpID4gMSk7ICAgICAgICAvL0xJTkUgSQoKICB7CgogICAgb3V0ZmlsZSA+PiBpOwoKICAgIGkgPSB2MVswXTsKCiAgICB2MS5wb3BfYmFjayAoKTsKCiAgfQoKICBvdXRmaWxlLmNsb3NlICgpOzsgICAgICAgIC8vTElORSBJSQoKICBmb3JfZWFjaCAodjEuYmVnaW4gKCksIHYxLmVuZCAoKSwgcHJpbnRlcik7CgogIG91dGZpbGUuY2xvc2UgKCk7CiAgb3V0ZmlsZS5vcGVuICgib3V0cHV0LnR4dCIpOwoKICByZXR1cm4gMDsKCn0K