publicstaticvoidmain(String args[])throws IOException{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(bf.readLine()); long memo[];
memo = newlong[n + 1];
memo[0] = 0; memo[1] = 1;
for(int i = 2; i <= n; i++) { memo[i] = memo[i - 1] + memo[i - 2]; }