/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) //no of ways to divide array in two equal parts
import java.util.*;
public class Main
{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[]nums = new int[n];
		
		for(int i=0;i<n;i++){
		    nums[i]=sc.nextInt();
		}
		int tot_sum=0;
		for(int i=0;i<n;i++){
		    tot_sum+=nums[i];
		}
		int lhs=0;
		int rhs=0;
		int count=0;
		if(tot_sum%2 ==0){
		    for(int i=0;i<n;i++){
		        lhs+=nums[i];
		        rhs=tot_sum-lhs;
		        if(lhs == tot_sum/2){
		          count++;
		        }
		    }
		}
		System.out.print("Number of ways to divide in two equal parts :" + count);
	}
} java.lang.Exception
	{
		// your code goes here
	}
}