package _4_27;import java.util.Scanner;publicclass_1013{publicstaticvoidmain(String[] args){
Scanner scan =newScanner(System.in);int n = scan.nextInt();int a =0;long sum =0L;for(int i =0; i < n;++i){
a = a *10+2;
sum += a;}
System.out.println(sum);}}
publicstaticvoidmain(String[] args){
Scanner scan =newScanner(System.in);int n = scan.nextInt();long sum =0;for(int i =1; i <= n;++i){
sum +=print(i);}
System.out.println(sum);}publicstaticlongprint(int n){long m =1;for(int i =1; i <= n;++i){
m *= i;}return m;}
package _4_27;import java.util.Scanner;public class _1013 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a = 0; long sum = 0L; for(int i = 0; i < n; ++i) { a = a * 10 + 2;