Language: C++

package main

import (
	"bufio"
	"bytes"
	"fmt"
	"io"
	"os"
	"strconv"
)

var DEBUG = true

func main() {
	defer Flush()

	a := []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}
	println(a[readi()-1])

}

// -----------------------------------------------------------------------------

// IO helper functions

// Returns next token from input.  It must be initialized by SetInput()
// before the first call.
var nextToken func() ([]byte, error)
var nextLine func() ([]byte, error)

// Holds a buffer for output.  It must be initialized by SetOutput().
// All IO fucntions (read*() and [e]print*()) should write to OutputWriter
// instead of this.
var OutputBuffer *bufio.Writer

// Holds an io.Writer.  It must be initialized by SetOutput()
var OutputWriter io.Writer

// Set IO functions for interactive input/output.
func SetInteractive(w io.Writer, r io.Reader) {
	SetUnbefferedInput(r)
	OutputBuffer = nil
	OutputWriter = w
}

// Setup OutputBuffer and OutputWriter.
func SetOutput(w io.Writer) {
	OutputBuffer = bufio.NewWriter(w)
	OutputWriter = OutputBuffer
}

// Flushes OutputBuffer
func Flush() {
	if OutputBuffer != nil {
		OutputBuffer.Flush()
	}
}

// Returns true if c is a white space
func IsSpace(c byte) bool {
	switch c {
	case '\t', '\n', '\v', '\f', '\r', ' ':
		return true
	}
	return false
}

func IsNewLine(c byte) bool {
	switch c {
	case '\n', '\r':
		return true
	}
	return false
}

// Setup nextToken with input buffer.
func SetInput(r io.Reader) {
	buf := new(bytes.Buffer)
	var b []byte

	var i int
	rest := func() ([]byte, error) {
		for i < len(b) && IsSpace(b[i]) {
			i++
		}
		if i == len(b) {
			return nil, io.ErrUnexpectedEOF
		}
		j := i
		for i < len(b) && !IsSpace(b[i]) {
			i++
		}
		return b[j:i], nil
	}
	initial := func() ([]byte, error) {
		io.Copy(buf, r)
		b = buf.Bytes()
		nextToken = rest
		return rest()
	}
	nextToken = initial

	restLn := func() ([]byte, error) {
		for i < len(b) && IsNewLine(b[i]) {
			i++
		}
		if i == len(b) {
			return nil, io.ErrUnexpectedEOF
		}
		j := i
		for i < len(b) && !IsNewLine(b[i]) {
			i++
		}
		return b[j:i], nil
	}

	initialLn := func() ([]byte, error) {
		io.Copy(buf, r)
		b = buf.Bytes()
		nextLine = restLn
		return restLn()
	}
	nextLine = initialLn
}

// Setup nextToken without input buffer.
func SetUnbefferedInput(r io.Reader) {
	buf := bufio.NewReader(r)
	var b []byte

	var i int
	nextToken = func() ([]byte, error) {
		var err error
		if i == len(b) {
			b, err = buf.ReadBytes('\n')
			if err != nil {
				return nil, err
			}
			i = 0
			j := len(b) - 1
			for 0 <= j && IsSpace(b[j]) {
				j--
			}
			b = b[0 : j+1]
		}
		for i < len(b) && IsSpace(b[i]) {
			i++
		}
		j := i
		for i < len(b) && !IsSpace(b[i]) {
			i++
		}
		if i == j {
			return nil, io.ErrUnexpectedEOF
		}
		return b[j:i], nil
	}
}

// -----------------------------------------------------------------------------

// IO functions

// Reads next token and return it as []byte
func readb() []byte {
	b, err := nextToken()
	if err != nil {
		panic(err)
	}
	return b[:len(b):len(b)]
}

// Reads next token and return it as string
func reads() string {
	return string(readb())
}

// Read next line as []byte.  Trailing '\n' will not be included.
// See also comments on readb()
func readbln() []byte {
	b, err := nextLine()
	if err != nil {
		panic(err)
	}
	return b[:len(b):len(b)]
}

// Read next line as string
func readsln() string {
	return string(readbln())
}

// Reads next token and return it as int64
func readll() int64 {
	i, err := strconv.ParseInt(reads(), 10, 64)
	if err != nil {
		panic(err.Error())
	}
	return i
}

// Reads next token and return it as int
func readi() int {
	return int(readll())
}

// Reads next token and return it as float64
func readf() float64 {
	f, err := strconv.ParseFloat(reads(), 64)
	if err != nil {
		panic(err.Error())
	}
	return f
}

// Write args to OutputWriter with the format f
func printf(f string, args ...interface{}) (int, error) {
	return fmt.Fprintf(OutputWriter, f, args...)
}

// Write args to OutputWriter without format
func println(args ...interface{}) (int, error) {
	return fmt.Fprintln(OutputWriter, args...)
}

// Write args to stderr with the format f
func eprintf(f string, args ...interface{}) (int, error) {
	return fmt.Fprintf(os.Stderr, f, args...)
}

// Write args to stderr without format
func eprintln(args ...interface{}) (int, error) {
	return fmt.Fprintln(os.Stderr, args...)
}

func dbgf(f string, args ...interface{}) {
	if !DEBUG {
		return
	}
	fmt.Fprintf(os.Stderr, f, args...)
}

func dbg(args ...interface{}) {
	if !DEBUG {
		return
	}
	fmt.Fprintln(os.Stderr, args...)
}

// -----------------------------------------------------------------------------

// Utilities

func sumSlice(a []int) int {
	var res int
	for _, v := range a {
		res += v
	}
	return res
}

func sumSlicell(a []int64) int64 {
	var res int64
	for _, v := range a {
		res += v
	}
	return res
}

func readInts(N int) (int, []int) {
	if N == 0 {
		N = readi()
	}
	a := make([]int, N)
	for i := range a {
		a[i] = readi()
	}
	return N, a
}

func readIntsll(N int) (int, []int64) {
	if N == 0 {
		N = readi()
	}
	a := make([]int64, N)
	for i := range a {
		a[i] = readll()
	}
	return N, a
}

// reverse slice in place
func reverse(a []int) {
	for i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {
		a[i], a[j] = a[j], a[i]
	}
}

// areverse: allocating reverse
func areverse(a []int) []int {
	b := make([]int, len(a))
	for i := range a {
		b[i] = a[len(a)-i-1]
	}
	return b
}

// -----------------------------------------------------------------------------

// Simple math functions

const (
	// big prime
	INF  = 1000000007
	INF2 = 1000000009
	INF3 = 998244353
)

func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}

func minll(a, b int64) int64 {
	if a < b {
		return a
	}
	return b
}

func minf(a, b float64) float64 {
	if a < b {
		return a
	}
	return b
}

func max(a, b int) int {
	if a < b {
		return b
	}
	return a
}

func maxll(a, b int64) int64 {
	if a < b {
		return b
	}
	return a
}

func maxf(a, b float64) float64 {
	if a < b {
		return b
	}
	return a
}

func abs(a int) int {
	if a < 0 {
		return -a
	}
	return a
}

func absll(a int64) int64 {
	if a < 0 {
		return -a
	}
	return a
}

func absf(a float64) float64 {
	if a < 0 {
		return -a
	}
	return a
}

// egcd(a, b) returns d, x, y:
//   d is gcd(a,b)
//   x, y are  integers that satisfy ax + by = d
func egcd(a, b int) (int, int, int) {
	if b == 0 {
		return a, 1, 0
	}
	d, x, y := egcd(b, a%b)
	return d, y, x - a/b*y
}

func egcdll(a, b int64) (int64, int64, int64) {
	if b == 0 {
		return a, 1, 0
	}
	d, x, y := egcdll(b, a%b)
	return d, y, x - a/b*y
}

func gcd(a, b int) int {
	d, _, _ := egcd(a, b)
	return d
}

func gcdll(a, b int64) int64 {
	d, _, _ := egcdll(a, b)
	return d
}

// set up IO functions
func init() {
	// for non-interactive
	SetInput(os.Stdin)
	SetOutput(os.Stdout)

	// Enable below when interactive.  Its ok to leave above intact.
	// SetInteractive(os.Stdout, os.Stdin)
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:28:1: error: 'var' does not name a type
   28 | var nextToken func() ([]byte, error)
      | ^~~
a.cc:47:1: error: 'func' does not name a type
   47 | func SetOutput(w io.Writer) {
      | ^~~~
a.cc:53:1: error: 'func' does not name a type
   53 | func Flush() {
      | ^~~~
a.cc:60:1: error: 'func' does not name a type
   60 | func IsSpace(c byte) bool {
      | ^~~~
a.cc:68:1: error: 'func' does not name a type
   68 | func IsNewLine(c byte) bool {
      | ^~~~
a.cc:77:1: error: 'func' does not name a type
   77 | func SetInput(r io.Reader) {
      | ^~~~
a.cc:127:1: error: 'func' does not name a type
  127 | func SetUnbefferedInput(r io.Reader) {
      | ^~~~
a.cc:165:1: error: 'func' does not name a type
  165 | func readb() []byte {
      | ^~~~
a.cc:174:1: error: 'func' does not name a type
  174 | func reads() string {
      | ^~~~
a.cc:180:1: error: 'func' does not name a type
  180 | func readbln() []byte {
      | ^~~~
a.cc:189:1: error: 'func' does not name a type
  189 | func readsln() string {
      | ^~~~
a.cc:194:1: error: 'func' does not name a type
  194 | func readll() int64 {
      | ^~~~
a.cc:203:1: error: 'func' does not name a type
  203 | func readi() int {
      | ^~~~
a.cc:208:1: error: 'func' does not name a type
  208 | func readf() float64 {
      | ^~~~
a.cc:217:1: error: 'func' does not name a type
  217 | func printf(f string, args ...interface{}) (int, error) {
      | ^~~~
a.cc:217:42: error: expected unqualified-id before ')' token
  217 | func printf(f string, args ...interface{}) (int, error) {
      |                                          ^
a.cc:222:1: error: 'func' does not name a type
  222 | func println(args ...interface{}) (int, error) {
      | ^~~~
a.cc:222:33: error: expected unqualified-id before ')' token
  222 | func println(args ...interface{}) (int, error) {
      |                                 ^
a.cc:227:1: error: 'func' does not name a type
  227 | func eprintf(f string, args ...interface{}) (int, error) {
      | ^~~~
a.cc:227:43: error: expected unqualified-id before ')' token
  227 | func eprintf(f string, args ...interface{}) (int, error) {
      |                                           ^
a.cc:232:1: error: 'func' does not name a type
  232 | func eprintln(args ...interface{}) (int, error) {
      | ^~~~
a.cc:232:34: error: expected unqualified-id before ')' token
  232 | func eprintln(args ...interface{}) (int, error) {
      |                                  ^
a.cc:236:1: error: 'func' does not name a type
  236 | func dbgf(f string, args ...interface{}) {
      | ^~~~
a.cc:236:40: error: expected unqualified-id before ')' token
  236 | func dbgf(f string, args ...interface{}) {
      |                                        ^
a.cc:243:1: error: 'func' does not name a type
  243 | func dbg(args ...interface{}) {
      | ^~~~
a.cc:243:29: error: expected unqualified-id before ')' token
  243 | func dbg(args ...interface{}) {
      |                             ^
a.cc:254:1: error: 'func' does not name a type
  254 | func sumSlice(a []int) int {
      | ^~~~
a.cc:262:1: error: 'func' does not name a type
  262 | func sumSlicell(a []int64) int64 {
      | ^~~~
a.cc:270:1: error: 'func' does not name a type
  270 | func readInts(N int) (int, []int) {
      | ^~~~
a.cc:281:1: error: 'func' does not name a type
  281 | func readIntsll(N int) (int, []int64) {
      | ^~~~
a.cc:293:1: error: 'func' does not name a type
  293 | func reverse(a []int) {
      | ^~~~
a.cc:300:1: error: 'func' does not name a type
  300 | func areverse(a []int) []int {
      | ^~~~
a.cc:314:12: error: expected ')' before '=' token
  314 |         INF  = 1000000007
      |            ^ ~
      |            )
a.cc:312:7: note: to match this '('
  312 | const (
      |       ^
a.cc:326:1: error: 'func' does not name a type
  326 | func minll(a, b int64) int64 {
      | ^~~~
a.cc:333:1: error: 'func' does not name a type
  333 | func minf(a, b float64) float64 {
      | ^~~~
a.cc:340:1: error: 'func' does not name a type
  340 | func max(a, b int) int {
      | ^~~~
a.cc:347:1: error: 'func' does not name a type
  347 | func maxll(a, b int64) int64 {
      | ^~~~
a.cc:354:1: error: 'func' does not name a type
  354 | func maxf(a, b float64) float64 {
      | ^~~~
a.cc:361:1: error: 'func' does not name a type
  361 | func abs(a int) int {
      | ^~~~
a.cc:368:1: error: 'func' does not name a type
  368 | func absll(a int64) int64 {
      | ^~~~
a.cc:375:1: error: 'func' does not name a type
  375 | func absf(a float64) float64 {
      | ^~~~
a.cc:385:1: error: 'func' does not name a type
  385 | func egcd(a, b int) (int, int, int) {
      | ^~~~
a.cc:393:1: error: 'func' does not name a type
  393 | func egcdll(a, b int64) (int64, int64, int64) {
      | ^~~~
a.cc:401:1: error: 'func' does not name a type
  401 | func gcd(a, b int) int {
      | ^~~~
a.cc:406:1: error: 'func' does not name a type
  406 | func gcdll(a, b int64) int64 {
      | ^~~~
a.cc:412:1: error: 'func' does not name a type
  412 | func init() {
      | ^~~~