import java.util.Scanner;public class BJ2156 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] glasses = new int[n+1]; int[] dp = new int[n+1]; for (int i = 1; i = 1) { dp[1] = glasses[1]; } //n이 2이상일때 if (n >= 2) { dp[2] = glasses[1] + glasses[2]; } ..