import java.util.*;
import java.lang.*;
import java.io.*;
class ArithmeticDemo {
public static void main
(String[] args
) { // result 의 값은 3
int result = 1 + 2;
// result 의 값은 2
result = result - 1;
// result 의 값은 4
result = result * 2;
// result 의 값은 2
result = result / 2;
// result 의 값은 10
result = result + 8;
// result 의 값은 3
result = result % 7;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBBcml0aG1ldGljRGVtbyAgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIC8vIHJlc3VsdCDsnZgg6rCS7J2AIDMKICAgICAgICBpbnQgcmVzdWx0ID0gMSArIDI7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHJlc3VsdCk7CiAgCiAgICAgICAgLy8gcmVzdWx0IOydmCDqsJLsnYAgMgogICAgICAgIHJlc3VsdCA9IHJlc3VsdCAtIDE7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHJlc3VsdCk7CiAgCiAgICAgICAgLy8gcmVzdWx0IOydmCDqsJLsnYAgNAogICAgICAgIHJlc3VsdCA9IHJlc3VsdCAqIDI7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHJlc3VsdCk7CiAgCiAgICAgICAgLy8gcmVzdWx0IOydmCDqsJLsnYAgMgogICAgICAgIHJlc3VsdCA9IHJlc3VsdCAvIDI7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHJlc3VsdCk7CiAgCiAgICAgICAgLy8gcmVzdWx0IOydmCDqsJLsnYAgMTAKICAgICAgICByZXN1bHQgPSByZXN1bHQgKyA4OwogICAgICAgIC8vIHJlc3VsdCDsnZgg6rCS7J2AIDMKICAgICAgICByZXN1bHQgPSByZXN1bHQgJSA3OwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihyZXN1bHQpOwogICAgfQp9