Language: C++

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

class A {
    static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
    static void Main(string[] args) {
        int[] X = new int[] { 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 };
        int K;
        Input(out K);
        Print(X[K - 1]);
        Out.Flush();
    }
    static T ChangeT<T>(string s) => (T)Convert.ChangeType(s, typeof(T));
    static void Input<A>(out A a) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
    }
    static void Input<A, B>(out A a, out B b) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
    }
    static void Input<A, B, C>(out A a, out B b, out C c) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
    }
    static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
    }
    static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
        e = ChangeT<E>(words[4]);
    }
    static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
        var words = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries);
        a = ChangeT<A>(words[0]);
        b = ChangeT<B>(words[1]);
        c = ChangeT<C>(words[2]);
        d = ChangeT<D>(words[3]);
        e = ChangeT<E>(words[4]);
        f = ChangeT<F>(words[5]);
    }
    static void Inputs<T>(out T[] array) {
        array = Console.ReadLine().Split(new[] { ' ' }, options: StringSplitOptions.RemoveEmptyEntries).Select(s => ChangeT<T>(s)).ToArray();
    }
    static void Print<T>(T s) => Out.WriteLine(s);
    static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
    static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
}

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.IO;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:7:12: error: 'StreamWriter' does not name a type
    7 |     static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
      |            ^~~~~~~~~~~~
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:15:12: error: 'T' does not name a type
   15 |     static T ChangeT<T>(string s) => (T)Convert.ChangeType(s, typeof(T));
      |            ^
a.cc:16:17: error: variable or field 'Input' declared void
   16 |     static void Input<A>(out A a) {
      |                 ^~~~~
a.cc:16:17: error: expected ';' at end of member declaration
   16 |     static void Input<A>(out A a) {
      |                 ^~~~~
      |                      ;
a.cc:16:22: error: expected unqualified-id before '<' token
   16 |     static void Input<A>(out A a) {
      |                      ^
a.cc:20:17: error: variable or field 'Input' declared void
   20 |     static void Input<A, B>(out A a, out B b) {
      |                 ^~~~~
a.cc:20:17: error: expected ';' at end of member declaration
   20 |     static void Input<A, B>(out A a, out B b) {
      |                 ^~~~~
      |                      ;
a.cc:20:22: error: expected unqualified-id before '<' token
   20 |     static void Input<A, B>(out A a, out B b) {
      |                      ^
a.cc:25:17: error: variable or field 'Input' declared void
   25 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                 ^~~~~
a.cc:25:17: error: expected ';' at end of member declaration
   25 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                 ^~~~~
      |                      ;
a.cc:25:22: error: expected unqualified-id before '<' token
   25 |     static void Input<A, B, C>(out A a, out B b, out C c) {
      |                      ^
a.cc:31:17: error: variable or field 'Input' declared void
   31 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                 ^~~~~
a.cc:31:17: error: expected ';' at end of member declaration
   31 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                 ^~~~~
      |                      ;
a.cc:31:22: error: expected unqualified-id before '<' token
   31 |     static void Input<A, B, C, D>(out A a, out B b, out C c, out D d) {
      |                      ^
a.cc:38:17: error: variable or field 'Input' declared void
   38 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                 ^~~~~
a.cc:38:17: error: expected ';' at end of member declaration
   38 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                 ^~~~~
      |                      ;
a.cc:38:22: error: expected unqualified-id before '<' token
   38 |     static void Input<A, B, C, D, E>(out A a, out B b, out C c, out D d, out E e) {
      |                      ^
a.cc:46:17: error: variable or field 'Input' declared void
   46 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                 ^~~~~
a.cc:46:17: error: expected ';' at end of member declaration
   46 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                 ^~~~~
      |                      ;
a.cc:46:22: error: expected unqualified-id before '<' token
   46 |     static void Input<A, B, C, D, E, F>(out A a, out B b, out C c, out D d, out E e, out F f) {
      |                      ^
a.cc:55:17: error: variable or field 'Inputs' declared void
   55 |     static void Inputs<T>(out T[] array) {
      |                 ^~~~~~
a.cc:55:17: error: expected ';' at end of member declaration
   55 |     static void Inputs<T>(out T[] array) {
      |                 ^~~~~~
      |                       ;
a.cc:55:23: error: expected unqualified-id before '<' token
   55 |     static void Inputs<T>(out T[] array) {
      |                       ^
a.cc:58:17: error: variable or field 'Print' declared void
   58 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                 ^~~~~
a.cc:58:17: error: expected ';' at end of member declaration
   58 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                 ^~~~~
      |                      ;
a.cc:58:22: error: expected unqualified-id before '<' token
   58 |     static void Print<T>(T s) => Out.WriteLine(s);
      |                      ^
a.cc:59:17: error: variable or field 'Print' declared void
   59 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                 ^~~~~
a.cc:59:17: error: expected ';' at end of member declaration
   59 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                 ^~~~~
      |                      ;
a.cc:59:22: error: expected unqualified-id before '<' token
   59 |     static void Print<T>(params T[] s) => Out.WriteLine(string.Join(" ", s));
      |                      ^
a.cc:60:17: error: variable or field 'Print' declared void
   60 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                 ^~~~~
a.cc:60:17: error: expected ';' at end of member declaration
   60 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                 ^~~~~
      |                      ;
a.cc:60:22: error: expected unqualified-id before '<' token
   60 |     static void Print<T>(IEnumerable<T> e) => Out.WriteLine(string.Join(" ", e));
      |                      ^
a.cc:61:2: error: expected ';' after class definition
   61 | }
      |  ^
      |  ;
a.cc: In static member function 'static void A::Main(int*)':
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[] X = new int[] { 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 };
      |            ^~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:12: error: empty structured binding declaration
a.cc:9:15: error: expected initializer before 'X'
    9 |         int[] X = new int[] { 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 };
      |               ^
a.cc:11:15: error: 'out' was not declared in this scope
   11 |         Input(out K);
      |               ^~~
a.cc:11:9: error: 'Input' was not declared in this scope
   11 |         Input(out K);
      |         ^~~~~
a.cc:12:15: error: 'X' was not declared in this scope
   12 |         Print(X[K - 1]);
      |               ^
a.cc:12:9: error: 'Print' was not declared in this scope; did you mean 'int'?
   12 |         Print(X[K - 1]);
      |         ^~~~~
      |         int
a.cc:13:9: error: 'Out' was not declared in this scope
   13 |         Out.Flush();
      |         ^~~