#include int main(void){ int i, n, input; int ans = 0; scanf("%d", &n); for(i=0; i