import java.util.Scanner;
public class p2162 {
public static void main(String[] args) {
Scanner sc=new Scanner (System.in);
int l=0;
while(sc.hasNext()){
int n=sc.nextInt();
if(n<=0){
break;
}
l++;
int sum=0;
int []a=new int [n];
for(int i=0;i<a.length;i++){
a[i]=sc.nextInt();
sum+=a[i];
}
System.out.println("Sum of #"+l+" is "+sum);
}
}
}