#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector s(n), t; for(int i = 0; i < n; i++){ cin >> s[i]; for(int j = 0; j < i; j++){ t.emplace_back(s[i] + s[j]); t.emplace_back(s[j] + s[i]); } } sort(t.begin(), t.end()); t.erase(unique(t.begin(), t.end()), t.end()); cout << t.size() << '\n'; }