/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public class Expression {
    	private String textExpression = "";
	    public Double[] args = {null, null};
	    public char operation;
	    
	    // Тут опущен код сеттеров и некоторых операций
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
	}
	
	/**
     * Обработка простых операций +,-,*,/
     * @return
     */
    public Double simpleOperation(Expression expr) {
        double result = Double.NaN;
        switch (expr.operation) {
            case '+':
                result = expr.args[0] + expr.args[1];
            case '-':
                result = expr.args[0] - expr.args[1];
            case '*':
                result = expr.args[0] * expr.args[1];
            case '/':
                result = expr.args[0] / expr.args[1];
            default:
            	// В Яве так делать нельзя
            	// result = null;
        }
        return result;
    }
}