@@ -0,0 +1,460 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner sc = new Scanner(System.in);%0A        int n=sc.nextInt();%0A        int liking=2;%0A        int total=2;%0A        for(int i=0;i%3Cn-1;i++)%7B%0A            int sent=liking*3;%0A            liking=sent/2;%0A            total+=liking;%0A        %7D%0A        System.out.println(total);%0A    %7D%0A%7D

add ViralAdvertising.java