private static int[] calc(int[] a, int[] b, char calculator) {
		int opbS = b[0];
		int opbP = b[1];
		System.out.println(a[0] + "/" + a[1] + "  " +  calculator + "  " + b[0] + "/" + b[1]);
		int[] c = new int[2];
		if (calculator == '-') {
			opbS = 0 - opbS;
			calculator = '+';
		} else if (calculator == '/') {
			if (opbS == 0 || opbP == 0) {
				return c;
			}
			int tmp = opbS;
			opbS = opbP;
			opbP = tmp;
			calculator = '*';
		}
		if (calculator == '+') {
			if (a[1] == opbP) {
				c[1] = a[1];
				c[0] = a[0] + opbS;
			} else {
				c[1] = a[1] * opbP;
				c[0] = a[0] * opbP + a[1] * opbS;
			}	
		} else if (calculator == '*') {
			c[0] = a[0] * opbS;
			c[1] = a[1] * opbP;
		}
		if (c[1] != 1 && c[0] % c[1] == 0) {
			c[0] = c[0] / c[1];
			c[1] = 1;
		}
		return c;
	}