#include <iostream>
using namespace std;
int main()
{
int n = 0, f = 0, t = 0;
cin >> n;
if (n <= 1015 && n >= 1) {
for (int i = 1; i <= n; ++i) {
t = -i;
if (i % 2 == 0) {
t = abs(t);
}
cout << t << " ";
f += t;
}
} else {
cout << "Error" << endl;
}
cout << endl << "Res: " << f;
return 0;
}
//PascalABC.NET 3.1 сборка 1239
begin
var s := ReadlnString('s =');
s:=s.Replace('То', '');
writeln(s);
end.
Текст_сказки = replace('сказоч', 'чудес', текст_сказки)