Language: C++

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

class Main {

    InputStream is;
    PrintWriter out;
    
    void solve(){
        //Enter code here
        int n = ni() , m = ni();
        while (m-- > 0) {
            n += 1;
            if (n == 25) n = 1;
        }
        out.println(n);
    }
    public static void main(String[] args) {
        Main play = new Main();
        play.run();
    }
    public void run(){
        is = System.in;
        out = new PrintWriter(System.out);
        solve();
        out.flush();
    }
    
    byte input[] = new byte[1024];
    int len = 0,ptr = 0;
    int readByte() {
        if(ptr >= len){
            ptr = 0;
            try{
                len = is.read(input);
            } catch(IOException e){
                throw new InputMismatchException();
            }
            if(len <= 0){
                return -1;
            }
        }
        return input[ptr++];
    }
    boolean isSpaceChar(int c) {
        return !( c >= 33 && c <= 126 );
    }
    int skip(){
        int b = readByte();
        while(b != -1 && isSpaceChar(b)){
            b = readByte();
        }
        return b;
    }
    
    char nc() {
        return (char)skip();
    }
    String ns() {
        int b = skip();
        StringBuilder sb = new StringBuilder();
        while(!isSpaceChar(b)){
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    int ni() {
        int n = 0,b = readByte();
        boolean minus = false;
        while(b != -1 && !( (b >= '0' && b <= '9') || b == '-')){
            b = readByte();
        }
        if(b == '-'){
            minus = true;
            b = readByte();
        }
        while(b >= '0' && b <= '9'){
            n = n * 10 + (b - '0');
            b = readByte();
        }
        return minus ? -n : n;
    }
    long nl() {
        long n = 0L;
        int b = readByte();
        boolean minus = false;
        while(b != -1 && !( (b >= '0' && b <= '9') || b == '-')){
            b = readByte();
        }
        if(b == '-'){
            minus = true;
            b = readByte();
        }
        while(b>='0' && b<='9'){
            n = n * 10 + (b - '0');
            b = readByte();
        }
        return minus ? -n : n;
    }
    double nd() {
        return Double.parseDouble(ns());
    }
    float nf() {
        return Float.parseFloat(ns());
    }
    int[] na(int n){
        int a[] = new int[n];
        for(int i = 0;i < n;i++){
            a[i] = ni();
        }
        return a;
    }
    char[] ns(int n) {
        char c[] = new char[n];
        int i , b = skip();
        for (i = 0;i < n;i++){
            if (isSpaceChar(b)){
                break;
            }
            c[i] = (char)b;
            b = readByte();
        }
        return i == n ? c : Arrays.copyOf(c , i);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
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.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.math.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:5: error: 'InputStream' does not name a type
    7 |     InputStream is;
      |     ^~~~~~~~~~~
a.cc:8:5: error: 'PrintWriter' does not name a type
    8 |     PrintWriter out;
      |     ^~~~~~~~~~~
a.cc:19:11: error: expected ':' before 'static'
   19 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:19:29: error: 'String' has not been declared
   19 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:19:38: error: expected ',' or '...' before 'args'
   19 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:23:11: error: expected ':' before 'void'
   23 |     public void run(){
      |           ^~~~~
      |           :
a.cc:30:5: error: 'byte' does not name a type
   30 |     byte input[] = new byte[1024];
      |     ^~~~
a.cc:46:5: error: 'boolean' does not name a type; did you mean 'bool'?
   46 |     boolean isSpaceChar(int c) {
      |     ^~~~~~~
      |     bool
a.cc:60:5: error: 'String' does not name a type
   60 |     String ns() {
      |     ^~~~~~
a.cc:108:8: error: expected unqualified-id before '[' token
  108 |     int[] na(int n){
      |        ^
a.cc:115:9: error: expected unqualified-id before '[' token
  115 |     char[] ns(int n) {
      |         ^
a.cc:127:2: error: expected ';' after class definition
  127 | }
      |  ^
      |  ;
a.cc: In member function 'void Main::solve()':
a.cc:17:9: error: 'out' was not declared in this scope
   17 |         out.println(n);
      |         ^~~
a.cc: In static member function 'static void Main::main(int*)':
a.cc:20:21: error: conversion from 'Main*' to non-scalar type 'Main' requested
   20 |         Main play = new Main();
      |                     ^~~~~~~~~~
a.cc: In member function 'void Main::run()':
a.cc:24:9: error: 'is' was not declared in this scope
   24 |         is = System.in;
      |         ^~
a.cc:24:14: error: 'System' was not declared in this scope
   24 |         is = System.in;
      |              ^~~~~~
a.cc:25:9: error: 'out' was not declared in this scope
   25 |         out = new PrintWriter(System.out);
      |         ^~~
a.cc:25:19: error: expected type-specifier before 'PrintWriter'
   25 |         out = new PrintWriter(System.out);
      |                   ^~~~~~~~~~~
a.cc: In member function 'int Main::readByte()':
a.cc:36:23: error: 'is' was not declared in this scope
   36 |                 len = is.read(input);
      |                       ^~
a.cc:36:31: error: 'input' was not declared in this scope; did you mean 'int'?
   36 |                 len = is.read(input);
      |                               ^~~~~
      |                               int
a.cc:37:21: error: 'IOException' does not name a type
   37 |             } catch(IOException e){
      |                     ^~~~~~~~~~~
a.cc:38:27: error: expected type-specifier before 'InputMismatchException'
   38 |                 throw new InputMismatchException();
      |                           ^~~~~~~~~~~~~~~~~~~~~~
a.cc:44:16: error: 'input' was not declared in this scope; did you mean 'int'?
   44 |         return input[ptr++];
      |                ^~~~~
      |                int
a.cc: In member function 'int Main::skip()':
a.cc:51:26: error: 'isSpaceChar' was not declared in this scope
   51 |         while(b != -1 && isSpaceChar(b)){
      |                          ^~~~~~~~~~~
a.cc: In member function 'int Main::ni()':
a.cc:71:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   71 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:76:13: error: 'minus' was not declared in this scope
   76 |             minus = true;
      |             ^~~~~
a.cc:83:16: error: 'minus' was not declared in this scope
   83 |         return minus ? -n : n;
      |                ^~~~~
a.cc: In member function 'long int Main::nl()':
a.cc:88:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   88 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:93:13: error: 'minus' was not declared in this scope
   93 |             minus = true;
      |             ^~~~~
a.cc:100:16: error: 'minus' was not declared in this scope
  100 |         return minus ? -n : n;
      |                ^~~~~
a.cc: In member function 'double Main::nd()':
a.cc:103:16: error: 'Double' was not declared in this scope; did you mean 'double'?
  103 |         return Double.parseDouble(ns());
      |                ^~~~~~
      |                double
a.cc:103:35: error: 'ns' was not declared in this scope; did you mean 'nc'?
  103 |         return Double.parseDouble(ns());
      |                                   ^~
      |                                   nc
a.cc: In member function 'float Main::nf()':
a.cc:106:16: error: 'Float' was not declared in this scope; did you mean 'float'?
  106 |         return Float.parseFloat(ns());
      |                ^~~~~
      |                float
a.cc:106:33: error: 'ns' was not declared in this scope; did you mean 'nc'?
  106 |         return Float.parseFloat(ns());
      |                                 ^~
      |                                 nc