package no260b; import java.math.BigInteger; import java.util.Scanner; public class Main { public static long MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); long bb = aho(b); long aa = aho(new BigInteger(a).subtract(BigInteger.ONE).toString()); System.out.println((bb + MOD - aa) % MOD); } public static long aho(String ss) { char[] s = ss.toCharArray(); int n = s.length; long[][][][] dp = new long[2][2][24][n+1]; dp[0][0][0][0] = 1; for(int i=0;i= MOD) { ret -= MOD; } } } } } return ret; } }