import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = 111111111; //sc.nextLong(); long B = 111111111*2; //sc.nextLong(); long C = 111111111*3; //sc.nextLong(); long D = 111111111*4; //sc.nextLong(); long r = (A*B%D )*C%D; System.out.println(r); } }