#include <bits/stdc++.h>
int main() {
int delta; std::cin >> delta;
int64_t sum(0), max(0);
for (int iter = 0; iter < (int)1e9; iter++) {
sum += delta;
max = std::max(max, sum);
}
std::cout << max << std::endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CmludCBtYWluKCkgewoJaW50IGRlbHRhOyBzdGQ6OmNpbiA+PiBkZWx0YTsKCWludDY0X3Qgc3VtKDApLCBtYXgoMCk7Cglmb3IgKGludCBpdGVyID0gMDsgaXRlciA8IChpbnQpMWU5OyBpdGVyKyspIHsKCQlzdW0gKz0gZGVsdGE7CgkJbWF4ID0gc3RkOjptYXgobWF4LCBzdW0pOwoJfQoJc3RkOjpjb3V0IDw8IG1heCA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQ==