Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static Scanner sc = new Scanner();
    static void Main(string[] args)
    {
        var P = sc.ReadInt();
        var Q = sc.ReadInt();
        var R = sc.ReadInt();

        var a = new int[] { P, Q, R };
        Array.Sort(a);

        Console.WriteLine(a[0] + a[1]);
    }


    static long Gcd(long a, long b)
    {
        var v = new[] { a, b };
        while (v[1] != 0) { v = new[] { v[1], v[0] % v[1] }; }
        return v[0];
    }

    static long Lcm(long a, long b)
    {
        return a / Gcd(a, b) * b;
    }
}

class Modulo
{
    public readonly int MOD;
    private readonly List<int> Facs = new List<int>() { 1 };

    public Modulo(int mod = 1000000007) { this.MOD = mod; }
    public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % MOD); }
    public int Div(int a, int b) { return Mul(a, Pow(b, MOD - 2)); }
    public int Pow(int a, int n)
    {
        switch (n)
        {
            case 0:
                return 1;
            case 1:
                return a;
            default:
                int p1 = Pow(a, n / 2);
                int p2 = Mul(p1, p1);
                return ((n % 2) == 0) ? p2 : Mul(p2, a);
        }
    }
    public int Fac(int n)
    {
        for (int i = this.Facs.Count; i <= n; i++)
        {
            this.Facs.Add(Mul(i, Facs[i - 1]));
        }
        return this.Facs[n];
    }
    public int nPr(int n, int r) => Div(Fac(n), Fac(n - r));
    public int nCr(int n, int r)
    {
        if (n < r) return 0;
        if (n == r) return 1;
        int res = Fac(n);
        res = Div(res, Fac(r));
        res = Div(res, Fac(n - r));
        return res;
    }
}

class Debug
{
    static void Dump<T>(T[,] array)
    {
        Console.WriteLine();
        var h = array.GetLength(0);
        var w = array.GetLength(1);

        for (int r = 0; r < h; r++)
        {
            for (int c = 0; c < w; c++)
            {
                Console.Write(array[r, c]);
                Console.Write(" ");
            }
            Console.WriteLine();
        }
        Console.WriteLine();
    }
}

class Scanner
{
    string[] S = new string[0];
    int Index = 0;
    char[] Separators = new char[] { ' ' };

    public string Next()
    {
        if (this.Index < this.S.Length) return this.S[this.Index++];
        var line = "";
        while (line == "") line = Console.ReadLine();
        this.S = line.Split(this.Separators, StringSplitOptions.RemoveEmptyEntries);
        if (this.S.Length == 0) return this.Next();
        this.Index = 0;
        return this.S[this.Index++];
    }

    public string ReadStr()
    {
        return this.Next();
    }

    public char ReadChar()
    {
        return this.Next()[0];
    }

    public int ReadInt()
    {
        return int.Parse(this.Next());
    }

    public uint ReadUInt()
    {
        return uint.Parse(this.Next());
    }

    public long ReadLong()
    {
        return long.Parse(this.Next());
    }

    public double ReadDouble()
    {
        return double.Parse(this.Next());
    }

    public int[] ReadIntArray(int n)
    {
        var array = new int[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadInt();
        }
        return array;
    }

    public long[] ReadLongArray(int n)
    {
        var array = new long[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadLong();
        }
        return array;
    }

    public double[] ReadDoubleArray(int n)
    {
        var array = new double[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadDouble();
        }
        return array;
    }

    public char[] ReadCharArray(int n)
    {
        var array = new char[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadChar();
        }
        return array;
    }

    public string[] ReadStrArray(int n)
    {
        var array = new string[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadStr();
        }
        return array;
    }
}

class HashMap<K, V> : Dictionary<K, V> where V : new()
{
    private V DefaltValue = new V();
    public HashMap() { }
    public HashMap(V defaultValue)
    {
        this.DefaltValue = new V();
    }
    new public V this[K i]
    {
        get
        {
            V v;
            return TryGetValue(i, out v) ? v : base[i] = this.DefaltValue;
        }
        set { base[i] = value; }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:7:12: error: 'Scanner' does not name a type
    7 |     static Scanner sc = new Scanner();
      |            ^~~~~~~
a.cc:8:22: error: 'string' has not been declared
    8 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:8:31: error: expected ',' or '...' before 'args'
    8 |     static void Main(string[] args)
      |                               ^~~~
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:10:9: error: 'var' was not declared in this scope
   10 |         var P = sc.ReadInt();
      |         ^~~
a.cc:11:13: error: expected ';' before 'Q'
   11 |         var Q = sc.ReadInt();
      |             ^
a.cc:12:13: error: expected ';' before 'R'
   12 |         var R = sc.ReadInt();
      |             ^
a.cc:14:13: error: expected ';' before 'a'
   14 |         var a = new int[] { P, Q, R };
      |             ^
a.cc:15:9: error: 'Array' was not declared in this scope
   15 |         Array.Sort(a);
      |         ^~~~~
a.cc:15:20: error: 'a' was not declared in this scope
   15 |         Array.Sort(a);
      |                    ^
a.cc:17:9: error: 'Console' was not declared in this scope
   17 |         Console.WriteLine(a[0] + a[1]);
      |         ^~~~~~~
a.cc: In static member function 'static long int Program::Gcd(long int, long int)':
a.cc:23:9: error: 'var' was not declared in this scope
   23 |         var v = new[] { a, b };
      |         ^~~
a.cc:24:16: error: 'v' was not declared in this scope
   24 |         while (v[1] != 0) { v = new[] { v[1], v[0] % v[1] }; }
      |                ^
a.cc:24:36: error: expected type-specifier before '[' token
   24 |         while (v[1] != 0) { v = new[] { v[1], v[0] % v[1] }; }
      |                                    ^
a.cc:25:16: error: 'v' was not declared in this scope
   25 |         return v[0];
      |                ^
a.cc: At global scope:
a.cc:36:11: error: expected ':' before 'readonly'
   36 |     public readonly int MOD;
      |           ^~~~~~~~~
      |           :
a.cc:36:12: error: 'readonly' does not name a type
   36 |     public readonly int MOD;
      |            ^~~~~~~~
a.cc:37:12: error: expected ':' before 'readonly'
   37 |     private readonly List<int> Facs = new List<int>() { 1 };
      |            ^~~~~~~~~
      |            :
a.cc:37:13: error: 'readonly' does not name a type
   37 |     private readonly List<int> Facs = new List<int>() { 1 };
      |             ^~~~~~~~
a.cc:39:11: error: expected ':' before 'Modulo'
   39 |     public Modulo(int mod = 1000000007) { this.MOD = mod; }
      |           ^~~~~~~
      |           :
a.cc:40:11: error: expected ':' before 'int'
   40 |     public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % MOD); }
      |           ^~~~
      |           :
a.cc:41:11: error: expected ':' before 'int'
   41 |     public int Div(int a, int b) { return Mul(a, Pow(b, MOD - 2)); }
      |           ^~~~
      |           :
a.cc:42:11: error: expected ':' before 'int'
   42 |     public int Pow(int a, int n)
      |           ^~~~
      |           :
a.cc:56:11: error: expected ':' before 'int'
   56 |     public int Fac(int n)
      |           ^~~~
      |           :
a.cc:64:11: error: expected ':' before 'int'
   64 |     public int nPr(int n, int r) => Div(Fac(n), Fac(n - r));
      |           ^~~~
      |           :
a.cc:64:37: error: invalid pure specifier (only '= 0' is allowed) before 'Div'
   64 |     public int nPr(int n, int r) => Div(Fac(n), Fac(n - r));
      |                                     ^~~
a.cc:65:11: error: expected ':' before 'int'
   65 |     public int nCr(int n, int r)
      |           ^~~~
      |           :
a.cc:74:2: error: expected ';' after class definition
   74 | }
      |  ^
      |  ;
a.cc: In constructor 'Modulo::Modulo(int)':
a.cc:39:48: error: request for member 'MOD' in '(Modulo*)this', which is of pointer type 'Modulo*' (maybe you meant to use '->' ?)
   39 |     public Modulo(int mod = 1000000007) { this.MOD = mod; }
      |                                                ^~~
a.cc: In member function 'int Modulo::Mul(int, int)':
a.cc:40:49: error: 'Math' was not declared in this scope
   40 |     public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % MOD); }
      |                                                 ^~~~
a.cc:40:69: error: 'MOD' was not declared in this scope
   40 |     public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % MOD); }
      |                                                                     ^~~
a.cc: In member function 'int Modulo::Div(int, int)':
a.cc:41:57: error: 'MOD' was not declared in this scope
   41 |     public int Div(int a, int b) { return Mul(a, Pow(b, MOD - 2)); }
      |                                                         ^~~
a.cc: In member function 'int Modulo::Fac(int)':
a.cc:58:27: error: request for member 'Facs' in '(Modulo*)this', which is of pointer type 'Modulo*' (maybe you meant to use '->' ?)
   58 |         for (int i = this.Facs.Count; i <= n; i++)
      |                           ^~~~
a.cc:60:18: error: request for member 'Facs' in '(Modulo*)this', which is of pointer type 'Modulo*' (maybe you meant to use '->' ?)
   60 |             this.Facs.Add(Mul(i, Facs[i - 1]));
      |                  ^~~~
a.cc:60:34: error: 'Facs' was not declared in this scope; did you mean 'Fac'?
   60 |             this.Facs.Add(Mul(i, Facs[i - 1]));
      |                                  ^~~~
      |                                  Fac
a.cc:62:21: error: request for member 'Facs' in '(Modulo*)this', which is of pointer type 'Modulo*' (maybe you meant to use '->' ?)
   62 |         return this.Facs[n];
      |                     ^~~~
a.cc: At global scope:
a.cc:78:17: error: variable or field 'Dump' declared void
   78 |     static void Dump<T>(T[,] array)
      |                 ^~~~
a.cc:78:17: error: expected ';' at end of member declaration
   78 |     static void Dump<T>(T[,] array)
      |                 ^~~~
      |                     ;
a.cc:78:21: error: expected unqualified-id before '<' token
   78 |     static void Dump<T>(T[,] array)
      |                     ^
a.cc:95:2: error: expected ';' after class definition
   95 | }
      |  ^
      |  ;
a.cc:99:5: error: 'string' does not name a type
   99 |     string[] S = new string[0];
      |     ^~~~~~
a.cc:101:9: error: expected unqualified-id before '[' token
  101 |     char[] Separators = new char[] { ' ' };
      |         ^
a.cc:103:11: error: expected ':' before 'string'
  103 |     public string Next()
      |           ^~~~~~~
      |           :
a.cc:103:12: error: 'string' does not name a type
  103 |     public string Next()
      |            ^~~~~~
a.cc:114:11: error: expected ':' before 'string'
  114 |     public string ReadStr()
      |           ^~~~~~~
      |           :
a.cc:114:12: error: 'string' does not name a type
  114 |     public string ReadStr()
      |            ^~~~~~
a.cc:119:11: error: expected ':' before 'char'
  119 |     public char ReadChar()
      |           ^~~~~
      |           :
a.cc:124:11: error: expected ':' before 'int'
  124 |     public int ReadInt()
      |           ^~~~
      |           :
a.cc:129:11: error: expected ':' before 'uint'
  129 |     public uint ReadUInt()
      |           ^~~~~
      |           :
a.cc:129:12: error: 'uint' does not name a type; did you mean 'int'?
  129 |     public uint ReadUInt()
      |            ^~~~
      |            int
a.cc:134:11: error: expected ':' before 'long'
  134 |     public long ReadLong()
      |           ^~~~~
      |           :
a.cc:139:11: error: expected ':' before 'double'
  139 |     public double ReadDouble()
      |           ^~~~~~~
      |           :
a.cc:144:11: error: expected ':' before 'int'
  144 |     public int[] ReadIntArray(int n)
      |           ^~~~
      |           :
a.cc:144:15: error: expected unqualified-id before '[' token
  144 |     public int[] ReadIntArray(int n)
      |               ^
a.cc:154:11: error: expected ':' before 'long'
  154 |     public long[] ReadLongArray(int n)
      |           ^~~~~
      |           :
a.cc:154:16: error: expected unqualified-id before '[' token
  154 |     public long[] ReadLongArray(int n)
      |                ^
a.cc:164:11: error: expected ':' before 'double'
  164 |     public double[] ReadDoubleArray(int n)
      |           ^~~~~~~
      |           :
a.cc:164:18: error: expected unqualified-id before '[' token
  164 |     public double[] ReadDoubleArray(int n)
      |                  ^
a.cc:174:11: error: expected ':' before 'char'
  174 |     public char[] ReadCharArray(int n)
      |           ^~~~~
      |           :
a.cc:174:16: error: expected unqualified-id before '[' token
  174 |     public char[] ReadCharArray(int n)
      |                ^
a.cc:184:11: error: expected ':' before 'string'
  184 |     public string[] ReadStrArray(int n)
      |           ^~~~~~~
      |           :
a.cc:184:12: error: 'string' does not name a type
  184 |     public string[] ReadStrArray(int n)
      |            ^~~~~~
a.cc:193:2: error: expected ';' after class definition
  193 | }
      |  ^
      |  ;
a.cc: In member function 'char Scanner::ReadChar()':
a.cc:121:21: error: request for member 'Next' in '(Scanner*)this', which is of pointer type 'Scanner*' (maybe you meant to use '->' ?)
  121 |         return this.Next()[0];
      |                     ^~~~
a.cc: In member function 'int Scanner::ReadInt()':
a.cc:126:16: error: expected primary-expression before 'int'
  126 |         return int.Parse(this.Next());
      |                ^~~
a.cc:126:16: error: expected ';' before 'int'
a.cc:126:19: error: expected unqualified-id before '.' token
  126 |         return in