package src; import java.util.*; class B{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { long[] in = new long[s.nextInt()]; long[] out = new long[in.length+1]; long buf=1; out[0]=buf; for(int i=0;i=2) b1=Math.min(b1, out[i]); } buf=b1; out[0]=buf; for(int i=0;i