import javax annotation processing SupportedSourceVersi on import java

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import javax.annotation.processing.SupportedSourceVersion;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int n = sc.nextInt();
BigDecimal bdA = BigDecimal.ONE;
BigDecimal bdB = BigDecimal.ZERO;
for (int i = 0; i < n; ++i) {
BigDecimal bdt = bdA;
bdA = (bdA.add(bdB)).divide(BigDecimal.valueOf(2));
bdB = bdt;
pw.println(bdA);
}
pw.flush();
}
}