#ifndef MIXEDEXPRESSION_H
#define MIXEDEXPRESSION_H
#include<fstream>
using namespace std;
class MixedExpression
{
private :
long a, b, c; // Variables of the mixed expression.
void reduce( void ) ; // Reduce a mixed expression to its normal form.
public :
MixedExpression( ) ; // Default constructor.
MixedExpression( long , long , long ) ; // Normal constructor.
MixedExpression add( MixedExpression op) ; // Add two mixed expressions.
MixedExpression subtract( MixedExpression op) ; // Subtract two mixed expressions.
MixedExpression multiply( MixedExpression op) ; // Multiply two mixed expressions.
MixedExpression divide( MixedExpression op) ; // Divide two mixed expressions.
void ReadMixedExp( istream & in) ; // Read each line.
void printData( ostream & out) ; // Print the result.
} ;
#endif
I2lmbmRlZiBNSVhFREVYUFJFU1NJT05fSAojZGVmaW5lIE1JWEVERVhQUkVTU0lPTl9ICiNpbmNsdWRlPGZzdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpjbGFzcyBNaXhlZEV4cHJlc3Npb24KewoJcHJpdmF0ZToKCQlsb25nIGEsIGIsIGM7IC8vIFZhcmlhYmxlcyBvZiB0aGUgbWl4ZWQgZXhwcmVzc2lvbi4KCQl2b2lkIHJlZHVjZSh2b2lkKTsgLy8gUmVkdWNlIGEgbWl4ZWQgZXhwcmVzc2lvbiB0byBpdHMgbm9ybWFsIGZvcm0uCglwdWJsaWM6CgkJTWl4ZWRFeHByZXNzaW9uKCk7IC8vIERlZmF1bHQgY29uc3RydWN0b3IuCgkJTWl4ZWRFeHByZXNzaW9uKGxvbmcsIGxvbmcsIGxvbmcpOyAvLyBOb3JtYWwgY29uc3RydWN0b3IuCgkJTWl4ZWRFeHByZXNzaW9uIGFkZChNaXhlZEV4cHJlc3Npb24gb3ApOyAvLyBBZGQgdHdvIG1peGVkIGV4cHJlc3Npb25zLgoJCU1peGVkRXhwcmVzc2lvbiBzdWJ0cmFjdChNaXhlZEV4cHJlc3Npb24gb3ApOyAvLyBTdWJ0cmFjdCB0d28gbWl4ZWQgZXhwcmVzc2lvbnMuCgkJTWl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