import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int len=Integer.parseInt(br.readLine()); int pat=Integer.parseInt(br.readLine()); br.readLine(); br.close(); int sum=1; int n=(len-3)/3; for(int i=0;i