Language: C++

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

class Main {
    public static final long MOD = 1000000007;

    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
        PrintWriter out = new PrintWriter(System.out);
        Integer a,b,c,i,j,k,n,m;

        a=sc.nextInt();
        b=sc.nextInt();

        print((a*3+b)/2);

        
        out.flush();
    }

    private static void print(Object o) {
        System.out.println(o.toString());
    }
}

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;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    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();
    }
    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();
        }
    }
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }
    public double nextDouble() { return Double.parseDouble(next());}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static final long MOD = 1000000007;
      |           ^~~~~~~
      |           :
a.cc:5:19: error: 'final' does not name a type
    5 |     public static final long MOD = 1000000007;
      |                   ^~~~~
a.cc:7:11: error: expected ':' before 'static'
    7 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:7:29: error: 'String' has not been declared
    7 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:7:38: error: expected ',' or '...' before 'args'
    7 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:21:12: error: expected ':' before 'static'
   21 |     private static void print(Object o) {
      |            ^~~~~~~
      |            :
a.cc:21:31: error: 'Object' has not been declared
   21 |     private static void print(Object o) {
      |                               ^~~~~~
a.cc:24:2: error: expected ';' after class definition
   24 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:8:9: error: 'FastScanner' was not declared in this scope
    8 |         FastScanner sc = new FastScanner();
      |         ^~~~~~~~~~~
a.cc:9:9: error: 'PrintWriter' was not declared in this scope
    9 |         PrintWriter out = new PrintWriter(System.out);
      |         ^~~~~~~~~~~
a.cc:10:9: error: 'Integer' was not declared in this scope
   10 |         Integer a,b,c,i,j,k,n,m;
      |         ^~~~~~~
a.cc:12:9: error: 'a' was not declared in this scope
   12 |         a=sc.nextInt();
      |         ^
a.cc:12:11: error: 'sc' was not declared in this scope
   12 |         a=sc.nextInt();
      |           ^~
a.cc:13:9: error: 'b' was not declared in this scope
   13 |         b=sc.nextInt();
      |         ^
a.cc:18:9: error: 'out' was not declared in this scope
   18 |         out.flush();
      |         ^~~
a.cc: In static member function 'static void Main::print(int)':
a.cc:22:9: error: 'System' was not declared in this scope
   22 |         System.out.println(o.toString());
      |         ^~~~~~
a.cc:22:30: error: request for member 'toString' in 'o', which is of non-class type 'int'
   22 |         System.out.println(o.toString());
      |                              ^~~~~~~~
a.cc: At global scope:
a.cc:27:12: error: expected ':' before 'final'
   27 |     private final InputStream in = System.in;
      |            ^~~~~~
      |            :
a.cc:27:13: error: 'final' does not name a type
   27 |     private final InputStream in = System.in;
      |             ^~~~~
a.cc:28:12: error: expected ':' before 'final'
   28 |     private final byte[] buffer = new byte[1024];
      |            ^~~~~~
      |            :
a.cc:28:13: error: 'final' does not name a type
   28 |     private final byte[] buffer = new byte[1024];
      |             ^~~~~
a.cc:29:12: error: expected ':' before 'int'
   29 |     private int ptr = 0;
      |            ^~~~
      |            :
a.cc:30:12: error: expected ':' before 'int'
   30 |     private int buflen = 0;
      |            ^~~~
      |            :
a.cc:31:12: error: expected ':' before 'boolean'
   31 |     private boolean hasNextByte() {
      |            ^~~~~~~~
      |            :
a.cc:31:13: error: 'boolean' does not name a type; did you mean 'bool'?
   31 |     private boolean hasNextByte() {
      |             ^~~~~~~
      |             bool
a.cc:47:12: error: expected ':' before 'int'
   47 |     private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
      |            ^~~~
      |            :
a.cc:48:12: error: expected ':' before 'static'
   48 |     private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
      |            ^~~~~~~
      |            :
a.cc:48:20: error: 'boolean' does not name a type; did you mean 'bool'?
   48 |     private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
      |                    ^~~~~~~
      |                    bool
a.cc:49:11: error: expected ':' before 'boolean'
   49 |     public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
      |           ^~~~~~~~
      |           :
a.cc:49:12: error: 'boolean' does not name a type; did you mean 'bool'?
   49 |     public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
      |            ^~~~~~~
      |            bool
a.cc:50:11: error: expected ':' before 'String'
   50 |     public String next() {
      |           ^~~~~~~
      |           :
a.cc:50:12: error: 'String' does not name a type
   50 |     public String next() {
      |            ^~~~~~
a.cc:60:11: error: expected ':' before 'long'
   60 |     public long nextLong() {
      |           ^~~~~
      |           :
a.cc:84:11: error: expected ':' before 'int'
   84 |     public int nextInt() {
      |           ^~~~
      |           :
a.cc:89:11: error: expected ':' before 'double'
   89 |     public double nextDouble() { return Double.parseDouble(next());}
      |           ^~~~~~~
      |           :
a.cc:90:2: error: expected ';' after class definition
   90 | }
      |  ^
      |  ;
a.cc: In member function 'int FastScanner::readByte()':
a.cc:47:34: error: 'hasNextByte' was not declared in this scope
   47 |     private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
      |                                  ^~~~~~~~~~~
a.cc:47:56: error: 'buffer' was not declared in this scope; did you mean 'buflen'?
   47 |     private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
      |                                                        ^~~~~~
      |                                                        buflen
a.cc: In member function 'long int FastScanner::nextLong()':
a.cc:61:14: error: 'hasNext' was not declared in this scope
   61 |         if (!hasNext()) throw new NoSuchElementException();
      |              ^~~~~~~
a.cc:61:35: error: expected type-specifier before 'NoSuchElementException'
   61 |         if (!hasNext()) throw new NoSuchElementException();
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:63:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   63 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:66:13: error: 'minus' was not declared in this scope
   66 |             minus = true;
      |             ^~~~~
a.cc:70:23: error: expected type-specifier before 'NumberFormatException'
   70 |             throw new NumberFormatException();
      |                       ^~~~~~~~~~~~~~~~~~~~~
a.cc:76:34: error: 'isPrintableChar' was not declared in this scope
   76 |             }else if(b == -1 || !isPrintableChar(b)){
      |                                  ^~~~~~~~~~~~~~~
a.cc:77:24: error: 'minus' was not declared in this scope
   77 |                 return minus ? -n : n;
      |                        ^~~~~
a.cc:79:27: error: expected type-specifier before 'NumberFormatException'
   79 |                 throw new NumberFormatException();
      |                           ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'int FastScanner::nextInt()':
a.cc:86:18: error: 'Integer' was not declared in this scope
   86 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                  ^~~~~~~
a.cc:86:73: error: expected type-specifier before 'NumberFormatException'
   86 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
      |                                                                         ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'double FastScanner::nextDouble()':
a.cc:89:41: error: 'Double' was not declared in this scope; did you mean 'double'?
   89 |     public double nextDouble() { return Double.parseDouble(next());}
      |                                         ^~~~~~
      |                                         double
a.cc:89:60: error: 'next' was not declared in this scope; did you mean 'nextInt'?
   89 |     public double nextDouble() { return Double.parseDouble(next());}
      |                                                            ^~~~
      |                                                            nextInt