package main;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class BlankClass {

	private static final Pattern KEY_EVENT = Pattern.compile("^K,T:([A-Z]),K:((\\-)?[0-9]+)$");
	private static final Pattern MOUSE_MOVE_EVENT = Pattern.compile("^M,T:M,X:((\\-)?[0-9]+),Y:((\\-)?[0-9]+)$");
	private static final Pattern MOUSE_BUTTON_EVENT = Pattern.compile("^M,T:([A-Z]),B:((\\-)?[0-9]+)$");

	public static void main(String[] args) throws InterruptedException {
		Matcher m;
//		m = KEY_EVENT.matcher("K,T:E,K:-3");
//		System.out.println(m.find());
//		System.out.println(m.group(1));
//		System.out.println(m.group(2));

		m = MOUSE_MOVE_EVENT.matcher("M,T:M,X:123,Y:-456");
		System.out.println(m.find());
		System.out.println(m.group(1));//123
		System.out.println(m.group(3));//-456

//		m = MOUSE_BUTTON_EVENT.matcher("M,T:P,B:2");
//		System.out.println(m.find());
//		System.out.println(m.group(1));//P
//		System.out.println(m.group(2));//2
	}
}

@@ -12,964 +12,76 @@
 n;%0A%0A
-import java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0Apublic class BlankClass %7B%0A%0A%09private static final Pattern KEY_EVENT = Pattern.compile(%22%5EK,T:(%5BA-Z%5D),K:((%5C%5C-)?%5B0-9%5D+)$%22);%0A%09private static final Pattern MOUSE_MOVE_EVENT = Pattern.compile(%22%5EM,T:M,X:((%5C%5C-)?%5B0-9%5D+),Y:((%5C%5C-)?%5B0-9%5D+)$%22);%0A%09private static final Pattern MOUSE_BUTTON_EVENT = Pattern.compile(%22%5EM,T:(%5BA-Z%5D),B:((%5C%5C-)?%5B0-9%5D+)$%22);%0A%0A%09public static void main(String%5B%5D args) throws InterruptedException %7B%0A%09%09Matcher m;%0A//%09%09m = KEY_EVENT.matcher(%22K,T:E,K:-3%22);%0A//%09%09System.out.println(m.find());%0A//%09%09System.out.println(m.group(1));%0A//%09%09System.out.println(m.group(2));%0A%0A%09%09m = MOUSE_MOVE_EVENT.matcher(%22M,T:M,X:123,Y:-456%22);%0A%09%09System.out.println(m.find());%0A%09%09System.out.println(m.group(1));//123%0A%09%09System.out.println(m.group(3));//-456%0A%0A//%09%09m = MOUSE_BUTTON_EVENT.matcher(%22M,T:P,B:2%22);%0A//%09%09System.out.println(m.find());%0A//%09%09System.out.println(m.group(1));//P%0A//%09%09System.out.println(m.group(2));//2
+public class BlankClass %7B%0A%0A%09public static void main(String%5B%5D args) %7B
 %0A%09%7D%0A

Remove unnecessary code from BlankClass