public class Test {
static Long count=1l;
static int begin=1;
static int end=7;
public static void main(String[] args) {
xintuzi(begin, end);
System.out.println(count);
}
public static void xintuzi(int begin,int end){
if(begin>end){
return;
}
if(begin%4==0){
xintuzi(1, end-begin);
laotuzi(begin, end);
}else{
begin++;
xintuzi(begin, end);
}
}
public static void laotuzi(int begin,int end){
if(begin>end){
return;
}
count++;
begin++;
xintuzi(1, end-begin);
laotuzi(begin, end);
}
}