#include <iostream>
class C {
int n;
public:
C(int n) : n(n) { }
C &operator()(int n) {
this->n += n;
return *this;
}
friend std::ostream &operator<<(std::ostream &s, C c) {
s << c.n;
return s;
}
};
int main() {
C c(0);
std::cout << c(1)(2)(3)(4)(5)(6)(7)(8)(9)(10) << std::endl;
return 0;
}
/* end */