1
6 public class Alisotku {
7
8
13 private static int i(StringBuffer s) {
14 return Integer.parseInt(s.toString());
15 }
16
17
22 private static void set(StringBuffer s,int i) {
23 s.delete(0, s.length()).append(""+i);
24 }
25
26 static int a; static StringBuffer b; static int c;
27
28 private static void ali_1(StringBuffer a, int b)
29 {
30 int d;
31 d = i(a);
32 c = b + 3;
33 b = d - 1;
34 a.append(""+(c - 5));
35 }
36
37 static private void ali_2(StringBuffer a, StringBuffer b)
38 {
39 int c;
40 c = i(a) + i(b);
41 set(a,9 - c);
42 set(b,32);
43 }
44
45 public static void main(String[] args) {
46 StringBuffer d = new StringBuffer(); b = new StringBuffer();
47 a=1; set(b,2); c=3; set(d,4);
48 ali_1(d,c);
49 ali_2(b,d);
50 ali_1(d,3+i(d));
51 System.out.println("" + a + " " + b + " " + c + " " + d);
52 }
53 }
54