/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.ArrayList;
/* Name of the class has to be "Main" only if the class is public. */
public class Main {
/**
* @param args the command line arguments
*/
public static void main
(String[] args
) { // TODO code application logic here
Main nm = new Main();
/*
for(int i=1; i<= 4; i++) {
list.add(i);
}
list.remove(list.indexOf(1));
for(int i=0; i<= 2; i++) {
System.out.print(list.get(i));
}
*/
nm.test1();
}
public void test1() {
for(int i=1; i<= 4; i++) {
if(!list.contains(i)) {
list.add(i);
test1();
list.remove(list.indexOf(i));
}
}
if(list.size() == 4)
{
for(int i=0; i< 4; i++) {
System.
out.
print(list.
get(i
)); }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuQXJyYXlMaXN0OwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCnB1YmxpYyBjbGFzcyBNYWluIHsKCiAgICAvKioKICAgICAqIEBwYXJhbSBhcmdzIHRoZSBjb21tYW5kIGxpbmUgYXJndW1lbnRzCiAgICAgKi8KICAgIHN0YXRpYyBBcnJheUxpc3QgbGlzdDsKICAgIAogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIC8vIFRPRE8gY29kZSBhcHBsaWNhdGlvbiBsb2dpYyBoZXJlCiAgICAgICAgTWFpbiBubSA9IG5ldyBNYWluKCk7CiAgICAgICAgbm0ubGlzdCA9IG5ldyBBcnJheUxpc3QoKTsKICAgICAgICAvKgogICAgICAgIGZvcihpbnQgaT0xOyBpPD0gNDsgaSsrKSB7CiAgICAgICAgICAgIGxpc3QuYWRkKGkpOwogICAgICAgIH0KICAgICAgICAKICAgICAgICBsaXN0LnJlbW92ZShsaXN0LmluZGV4T2YoMSkpOwogICAgICAgIAogICAgICAgIGZvcihpbnQgaT0wOyBpPD0gMjsgaSsrKSB7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQobGlzdC5nZXQoaSkpOwogICAgICAgIH0KICAgICAgICAqLwogICAgICAgIG5tLnRlc3QxKCk7ICAgICAgICAKICAgIH0KICAgIAogICAgcHVibGljIHZvaWQgdGVzdDEoKSB7ICAgICAgICAKICAgICAgICBmb3IoaW50IGk9MTsgaTw9IDQ7IGkrKykgewogICAgICAgICAgICBpZighbGlzdC5jb250YWlucyhpKSkgewogICAgICAgICAgICAgICAgbGlzdC5hZGQoaSk7CiAgICAgICAgICAgICAgICB0ZXN0MSgpOwogICAgICAgICAgICAgICAgbGlzdC5yZW1vdmUobGlzdC5pbmRleE9mKGkpKTsKICAgICAgICAgICAgfQogICAgICAgIH0gICAgICAgICAgIAogICAgICAgIGlmKGxpc3Quc2l6ZSgpID09IDQpIAogICAgICAgIHsKICAgICAgICAgICAgZm9yKGludCBpPTA7IGk8IDQ7IGkrKykgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludChsaXN0LmdldChpKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCIiKTsKICAgICAgICB9CiAgICB9Cn0=