https://www.acmicpc.net/problem/2747
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int num1 = 0;
int num2 = 1;
for (int i = 0; i < n; i++) {
int sum = num1 + num2;
num1 = num2;
num2 = sum;
}
System.out.println(num1);
}
}