package no174a; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 10000 * (int) Math.pow(10, sc.nextInt()); long sum = 0; for(int i=0;i> 1 & 0x55555555); i = (i & 0x33333333) + (i >> 2 & 0x33333333); i = (i & 0x0f0f0f0f) + (i >> 4 & 0x0f0f0f0f); i = (i & 0x00ff00ff) + (i >> 8 & 0x00ff00ff); i = (i & 0x0000ffff) + (i >> 16 & 0x0000ffff); return i; } }