#include using namespace std; int main(){ int n, input, total; int bSame=1; cin >> n; for(int i=0; i> input; if(i==0) total=input; else{ if(total==input) continue; else{ total += ((total