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 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:9:1: error: expected unqualified-id before 'public'
    9 | public class Main {
      | ^~~~~~
a.cc:57:12: error: expected ':' before 'final'
   57 |     private final InputStream in = System.in;
      |            ^~~~~~
      |            :
a.cc:57:13: error: 'final' does not name a type
   57 |     private final InputStream in = System.in;
      |             ^~~~~
a.cc:58:12: error: expected ':' before 'final'
   58 |     private final byte[] buffer = new byte[1024];
      |            ^~~~~~
      |            :
a.cc:58:13: error: 'final' does not name a type
   58 |     private final byte[] buffer = new byte[1024];
      |             ^~~~~
a.cc:59:12: error: expected ':' before 'int'
   59 |     private int ptr = 0;
      |            ^~~~
      |            :
a.cc:60:12: error: expected ':' before 'int'
   60 |     private int buflen = 0;
      |            ^~~~
      |            :
a.cc:63:12: error: expected ':' before 'boolean'
   63 |     private boolean hasNextByte() {
      |            ^~~~~~~~
      |            :
a.cc:63:13: error: 'boolean' does not name a type; did you mean 'bool'?
   63 |     private boolean hasNextByte() {
      |             ^~~~~~~
      |             bool
a.cc:81:12: error: expected ':' before 'int'
   81 |     private int readByte() {
      |            ^~~~
      |            :
a.cc:95:12: error: expected ':' before 'static'
   95 |     private static boolean isPrintableChar(int c) {
      |            ^~~~~~~
      |            :
a.cc:95:20: error: 'boolean' does not name a type; did you mean 'bool'?
   95 |     private static boolean isPrintableChar(int c) {
      |                    ^~~~~~~
      |                    bool
a.cc:102:11: error: expected ':' before 'boolean'
  102 |     public boolean hasNext() {
      |           ^~~~~~~~
      |           :
a.cc:102:12: error: 'boolean' does not name a type; did you mean 'bool'?
  102 |     public boolean hasNext() {
      |            ^~~~~~~
      |            bool
a.cc:113:11: error: expected ':' before 'String'
  113 |     public String next() {
      |           ^~~~~~~
      |           :
a.cc:113:12: error: 'String' does not name a type
  113 |     public String next() {
      |            ^~~~~~
a.cc:131:11: error: expected ':' before 'long'
  131 |     public long nextLong() {
      |           ^~~~~
      |           :
a.cc:160:11: error: expected ':' before 'int'
  160 |     public int nextInt() {
      |           ^~~~
      |           :
a.cc:170:11: error: expected ':' before 'double'
  170 |     public double nextDouble() {
      |           ^~~~~~~
      |           :
a.cc:173:2: error: expected ';' after class definition
  173 | }
      |  ^
      |  ;
a.cc: In member function 'int FastScanner::readByte()':
a.cc:82:13: error: 'hasNextByte' was not declared in this scope
   82 |         if (hasNextByte()) {
      |             ^~~~~~~~~~~
a.cc:83:24: error: 'buffer' was not declared in this scope; did you mean 'buflen'?
   83 |                 return buffer[ptr++];
      |                        ^~~~~~
      |                        buflen
a.cc: In member function 'long int FastScanner::nextLong()':
a.cc:132:14: error: 'hasNext' was not declared in this scope
  132 |         if (!hasNext()) throw new NoSuchElementException();
      |              ^~~~~~~
a.cc:132:35: error: expected type-specifier before 'NoSuchElementException'
  132 |         if (!hasNext()) throw new NoSuchElementException();
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:134:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
  134 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:137:13: error: 'minus' was not declared in this scope
  137 |             minus = true;
      |             ^~~~~
a.cc:141:23: error: expected type-specifier before 'NumberFormatException'
  141 |             throw new NumberFormatException();
      |                       ^~~~~~~~~~~~~~~~~~~~~
a.cc:147:34: error: 'isPrintableChar' was not declared in this scope
  147 |             }else if(b == -1 || !isPrintableChar(b)){
      |                                  ^~~~~~~~~~~~~~~
a.cc:148:24: error: 'minus' was not declared in this scope
  148 |                 return minus ? -n : n;
      |                        ^~~~~
a.cc:150:27: error: expected type-specifier before 'NumberFormatException'
  150 |                 throw new NumberFormatException();
      |                           ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'int FastScanner::nextInt()':
a.cc:162:18: error: 'Integer' was not declared in this scope
  162 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                  ^~~~~~~
a.cc:162:73: error: expected type-specifier before 'NumberFormatException'
  162 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                                                                         ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'double FastScanner::nextDouble()':
a.cc:171:16: error: 'Double' was not declared in this scope; did you mean 'double'?
  171 |         return Double.parseDouble(next());
      |                ^~~~~~
      |                double
a.cc:171:35: error: 'next' was not declared in this scope; did you mean 'nextInt'?
  171 |         return Double.parseDouble(next());
      |                                   ^~~~
      |                                   nextInt