package javacode; import java.util.Scanner; public class yukicoder2 { public static void main(String args[]){ Scanner cin = new Scanner(System.in); int target = cin.nextInt(); long tmp[] =new long[target]; long result=0L; for(int i=0;i0L){ result = tmp[k]; }else if(tmp[k]==0L){ }else{ if(tmp[k]==1L){ result += tmp[k]; }else{ result *= tmp[k]; } } } System.out.println(result); } }