Language: C++

// ABC112

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;


///** テンプレート */
//public class Main {
//	public static void main(String[] args) {
//		FastScanner sc = new FastScanner();
//		int N = sc.nextInt();
//		int M =  sc.nextInt();
//
//		int[] ary = new int[N];
//		for(int i = 0; i < N; i++) {
//			ary[i] = sc.nextInt();
//		}
//
//		//************************************/
//		// ここから出力処理
//		//************************************/
//		PrintWriter out = new PrintWriter(System.out);
//
//
//		out.println("hoge");
//
//		// 最後に必ずFlush
//		out.flush();
//	}
//}

/** A*/
public class Main {
	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		int X = sc.nextInt();
		int Y =  sc.nextInt();

		//************************************/
		// ここから出力処理
		//************************************/
		PrintWriter out = new PrintWriter(System.out);


		out.println(X + (Y/2));

		// 最後に必ずFlush
		out.flush();
	}
}

///** テンプレート */
//public class Main {
//	public static void main(String[] args) {
//		FastScanner sc = new FastScanner();
//		int N = sc.nextInt();
//		int M =  sc.nextInt();
//
//		int[] ary = new int[N];
//		for(int i = 0; i < N; i++) {
//			ary[i] = sc.nextInt();
//		}
//
//		//************************************/
//		// ここから出力処理
//		//************************************/
//		PrintWriter out = new PrintWriter(System.out);
//
//
//		out.println("hoge");
//
//		// 最後に必ずFlush
//		out.flush();
//	}
//}

/** スキャン用 */
class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;

    /** クラス内部用だよ */
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }

    /** クラス内部用だよ */
    private int readByte() {
    	if (hasNextByte()) {
    		return buffer[ptr++];
    	}else {
    		return -1;
    	}
    }

    /**
     * クラス内部用だよ
     * ASCII の文字の内、表示用の文字を返す関数
     *
     * @return 改行とか制御文字じゃない、表示用文字ならtrue
     * */
    private static boolean isPrintableChar(int c) {
    	return 33 <= c && c <= 126;
    }

    /**
     * @return 改行文字とか空白以外を除いた、次の文字があればtrue
     * */
    public boolean hasNext() {
    	while(hasNextByte() && !isPrintableChar(buffer[ptr])) {
    		ptr++;
    	}
    	return hasNextByte();
    }

    /**
     *
     * @return 次の文字列
     */
    public String next() {
        if (!hasNext()) {
        	throw new NoSuchElementException();
        }

        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }

    /**
     *
     * @return 次のLong
     */
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }

    /**
     *
     * @return 次のInt
     */
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }

    /**
     *
     * @return 次のDouble
     */
    public double nextDouble() {
    	return Double.parseDouble(next());
    }
}



Compiler output:
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.IOException;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.InputStream;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.NoSuchElementException;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:35:1: error: expected unqualified-id before 'public'
   35 | public class Main {
      | ^~~~~~
a.cc:81:12: error: expected ':' before 'final'
   81 |     private final InputStream in = System.in;
      |            ^~~~~~
      |            :
a.cc:81:13: error: 'final' does not name a type
   81 |     private final InputStream in = System.in;
      |             ^~~~~
a.cc:82:12: error: expected ':' before 'final'
   82 |     private final byte[] buffer = new byte[1024];
      |            ^~~~~~
      |            :
a.cc:82:13: error: 'final' does not name a type
   82 |     private final byte[] buffer = new byte[1024];
      |             ^~~~~
a.cc:83:12: error: expected ':' before 'int'
   83 |     private int ptr = 0;
      |            ^~~~
      |            :
a.cc:84:12: error: expected ':' before 'int'
   84 |     private int buflen = 0;
      |            ^~~~
      |            :
a.cc:87:12: error: expected ':' before 'boolean'
   87 |     private boolean hasNextByte() {
      |            ^~~~~~~~
      |            :
a.cc:87:13: error: 'boolean' does not name a type; did you mean 'bool'?
   87 |     private boolean hasNextByte() {
      |             ^~~~~~~
      |             bool
a.cc:105:12: error: expected ':' before 'int'
  105 |     private int readByte() {
      |            ^~~~
      |            :
a.cc:119:12: error: expected ':' before 'static'
  119 |     private static boolean isPrintableChar(int c) {
      |            ^~~~~~~
      |            :
a.cc:119:20: error: 'boolean' does not name a type; did you mean 'bool'?
  119 |     private static boolean isPrintableChar(int c) {
      |                    ^~~~~~~
      |                    bool
a.cc:126:11: error: expected ':' before 'boolean'
  126 |     public boolean hasNext() {
      |           ^~~~~~~~
      |           :
a.cc:126:12: error: 'boolean' does not name a type; did you mean 'bool'?
  126 |     public boolean hasNext() {
      |            ^~~~~~~
      |            bool
a.cc:137:11: error: expected ':' before 'String'
  137 |     public String next() {
      |           ^~~~~~~
      |           :
a.cc:137:12: error: 'String' does not name a type
  137 |     public String next() {
      |            ^~~~~~
a.cc:155:11: error: expected ':' before 'long'
  155 |     public long nextLong() {
      |           ^~~~~
      |           :
a.cc:184:11: error: expected ':' before 'int'
  184 |     public int nextInt() {
      |           ^~~~
      |           :
a.cc:194:11: error: expected ':' before 'double'
  194 |     public double nextDouble() {
      |           ^~~~~~~
      |           :
a.cc:197:2: error: expected ';' after class definition
  197 | }
      |  ^
      |  ;
a.cc: In member function 'int FastScanner::readByte()':
a.cc:106:13: error: 'hasNextByte' was not declared in this scope
  106 |         if (hasNextByte()) {
      |             ^~~~~~~~~~~
a.cc:107:24: error: 'buffer' was not declared in this scope; did you mean 'buflen'?
  107 |                 return buffer[ptr++];
      |                        ^~~~~~
      |                        buflen
a.cc: In member function 'long int FastScanner::nextLong()':
a.cc:156:14: error: 'hasNext' was not declared in this scope
  156 |         if (!hasNext()) throw new NoSuchElementException();
      |              ^~~~~~~
a.cc:156:35: error: expected type-specifier before 'NoSuchElementException'
  156 |         if (!hasNext()) throw new NoSuchElementException();
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:158:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
  158 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:161:13: error: 'minus' was not declared in this scope
  161 |             minus = true;
      |             ^~~~~
a.cc:165:23: error: expected type-specifier before 'NumberFormatException'
  165 |             throw new NumberFormatException();
      |                       ^~~~~~~~~~~~~~~~~~~~~
a.cc:171:34: error: 'isPrintableChar' was not declared in this scope
  171 |             }else if(b == -1 || !isPrintableChar(b)){
      |                                  ^~~~~~~~~~~~~~~
a.cc:172:24: error: 'minus' was not declared in this scope
  172 |                 return minus ? -n : n;
      |                        ^~~~~
a.cc:174:27: error: expected type-specifier before 'NumberFormatException'
  174 |                 throw new NumberFormatException();
      |                           ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'int FastScanner::nextInt()':
a.cc:186:18: error: 'Integer' was not declared in this scope
  186 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                  ^~~~~~~
a.cc:186:73: error: expected type-specifier before 'NumberFormatException'
  186 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                                                                         ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'double FastScanner::nextDouble()':
a.cc:195:16: error: 'Double' was not declared in this scope; did you mean 'double'?
  195 |         return Double.parseDouble(next());
      |                ^~~~~~
      |                double
a.cc:195:35: error: 'next' was not declared in this scope; did you mean 'nextInt'?
  195 |         return Double.parseDouble(next());
      |                                   ^~~~
      |                                   nextInt