import java.util.*; import java.io.*; import java.math.*; import java.util.stream.Stream; public class Main{ /* 入出力 */ static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static PrintWriter output = new PrintWriter(System.out); static Scanner sc = new Scanner(System.in); /* 定数 */ static final int [] y4 = {0,1,0,-1}; static final int [] x4 = {1,0,-1,0}; static final int INF1 = Integer.MAX_VALUE; static final long INF2 = Long.MAX_VALUE; static final long MOD1 = (long)1e9+7; static final long MOD2 = 998244353; static int ans = 0; static int k; /* Main */ public static void main(String[] args) throws IOException{ k = sc.nextInt(); Perm p = new Perm(8); p.next_permutation1(0,8); output.print(ans); output.flush(); } /* 順列 */ static class Perm{ int [] perm ; int [] tmp ; int [] used; String [] perm2; String [] tmp2; /*コンストラクタ */ public Perm(int N) { this.perm = new int[N]; this.tmp = new int[N]; this.used = new int[N]; this.perm2 = new String[N]; this.tmp2 = new String[N]; for(int i=0;i