Language: C

package main

import (
	"bufio"
	"container/heap"
	"fmt"
	"math"
	"os"
	"strconv"
	"strings"
)

const (
	initialBufSize = 10000
	maxBufSize     = 1000000
	mod            = 1e9 + 7
)

var (
	sc *bufio.Scanner = func() *bufio.Scanner {
		sc := bufio.NewScanner(os.Stdin)
		buf := make([]byte, initialBufSize)
		sc.Buffer(buf, maxBufSize)
		sc.Split(bufio.ScanWords)
		return sc
	}()
)

func main() {
	N := getInt()
	
	str := strconv.Itoa(N)
	if strings.Contains(str, "7") {
		fmt.Println("Yes")
	} else {
		fmt.Println("No")
	}
}

type Graph struct {
	n     int
	edges [][]int
}

func NewGraph(n int) *Graph {
	g := &Graph{
		n:     n,
		edges: make([][]int, n),
	}
	return g
}

func (g *Graph) AddEdge(u, v int) {
	g.edges[v] = append(g.edges[v], u)
	g.edges[u] = append(g.edges[u], v)
}

func dfs(c int, edges [][]int, visited map[int]struct{}) {
	visited[c] = struct{}{}

	for _, v := range edges[c] {
		_, flag := visited[v]
		if flag {
			continue
		}
		dfs(v, edges, visited)
	}
}

func bfs(c int, graph *Graph) {
	next := make([]int, 0)
	next = append(next, c)
	visited := make(map[int]struct{})

	for ; len(next) != 0; {
		u := next[0]
		next = next[1:]
		visited[u] = struct{}{}

		for _, v := range graph.edges[u] {
			_, flag := visited[v]
			if flag {
				continue
			}

			// なにか処理

			next = append(next, v)
		}
	}
}

func getInt() int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func getIntArray(n int) []int {
	array := make([]int, n)
	for i := 0; i < n; i++ {
		array[i] = getInt()
	}
	return array
}

func getString() string {
	sc.Scan()
	return sc.Text()
}

func abs(a int) int {
	return int(math.Abs(float64(a)))
}

func pow(p, q int) int {
	return int(math.Pow(float64(p), float64(q)))
}

func powMod(n, p int) int {
	if p == 0 {
		return 1
	} else if p%2 == 0 {
		t := powMod(n, p/2)
		return calcMod(t * t)
	} else {
		return calcMod(n * powMod(n, p-1))
	}
}

func min(nums ...int) int {
	if len(nums) == 0 {
		panic("funciton min() requires at least one argument.")
	}
	res := nums[0]
	for i := 0; i < len(nums); i++ {
		res = int(math.Min(float64(res), float64(nums[i])))
	}
	return res
}

func max(nums ...int) int {
	if len(nums) == 0 {
		panic("funciton max() requires at least one argument.")
	}
	res := nums[0]
	for i := 0; i < len(nums); i++ {
		res = int(math.Max(float64(res), float64(nums[i])))
	}
	return res
}

func strSearch(a []string, b string) bool {
	for i := 0; i < len(a); i++ {
		if a[i] == b {
			return true
		}
	}
	return false
}

func printIntArray(array []int) {
	strArray := fmt.Sprint(array)
	fmt.Println(strArray[1 : len(strArray)-1])
}

func calcMod(x int) int {
	return x % mod
}

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}

func isPrime(n int) bool {
	if n < 2 {
		return false
	} else if n == 2 {
		return true
	} else if n % 2 == 0 {
		return false
	}

	sqrtN := int(math.Sqrt(float64(n)))
	for i := 3; i <= sqrtN; i += 2 {
		if n % i == 0 {
			return false
		}
	}

	return true
}

func contains(s []int, e int) bool {
	for _, v := range s {
		if e == v {
			return true
		}
	}
	return false
}

func makeRange(min, max int) []int {
	a := make([]int, max-min+1)
	for i := range a {
		a[i] = min + i
	}
	return a
}

func powerset2(nums []int) [][]int {
	length := int(math.Pow(2, float64(len(nums))))
	result := make([][]int, length)

	index := 0
	result[index] = []int{}
	index++

	for _, n := range nums {
		max := index
		for i := 0; i < max; i++ {
			result[index] = copyAndAppend(result[i], n)
			index++
		}
	}

	return result
}

func copyAndAppend(nums []int, n int) []int {
	dst := make([]int, len(nums)+1)
	copy(dst, nums)
	dst[len(nums)] = n
	return dst
}

func calcGcd(x, y int) int {
	if y == 0 {
		return x
	} else if x >= y {
		return calcGcd(y, x % y)
	} else {
		return calcGcd(x, y % x)
	}
}

func getDivisor(n int) []int {
	var divisor []int
	divisor = append(divisor, 1)
	if n != 1 {
		divisor = append(divisor, n)
	}

	sqrt := int(math.Sqrt(float64(n)))
	for i := 2; i <= sqrt; i++ {
		if n % i == 0 {
			divisor = append(divisor, i)
			divisor = append(divisor, n/i)
		}
	}
	return divisor
}

type intHeap []int

func (h intHeap) Len() int {
	return len(h)
}

func (h intHeap) Less(i, j int) bool {
	return h[i] > h[j]
}

func (h intHeap) Swap(i, j int) {
	h[i], h[j] = h[j], h[i]
}

func (h *intHeap) Push(x interface{}) {
	*h = append(*h, x.(int))
}

func (h *intHeap) Pop() interface{} {
	old := *h
	n := len(old)
	x := old[n-1]
	*h = old[0 : n-1]
	return x
}

func initHeap() *intHeap {
	ih := &intHeap{}
	heap.Init(ih)
	return ih
}

func (h *intHeap) pushHeap(n int) {
	heap.Push(h, n)
}

func (h *intHeap) popHeap() int {
	return heap.Pop(h).(int)
}

func factMod(n int) int {
	value := 1
	for ; n > 1; n-- {
		value = calcMod(value * n)
	}
	return value
}

func combinationMod(n, k int) int {
	factN := factMod(n)
	factK := factMod(k)
	factNK := factMod(n - k)
	factKR := powMod(factK, mod - 2)
	factNKR := powMod(factNK, mod - 2)
	return calcMod(factN * calcMod(factKR * factNKR))
}


Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package main
      | ^~~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import (
      | ^~~~~~
main.c:26:11: error: expected identifier or '(' before ')' token
   26 |         }()
      |           ^
main.c:40:1: error: unknown type name 'type'; did you mean 'typeof'?
   40 | type Graph struct {
      | ^~~~
      | typeof
main.c:40:11: error: expected ';' before 'struct'
   40 | type Graph struct {
      |           ^~~~~~~
      |           ;
main.c:41:9: error: expected specifier-qualifier-list before 'n'
   41 |         n     int
      |         ^
main.c:45:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NewGraph'
   45 | func NewGraph(n int) *Graph {
      |      ^~~~~~~~
main.c:53:7: error: unknown type name 'g'
   53 | func (g *Graph) AddEdge(u, v int) {
      |       ^
main.c:58:1: error: unknown type name 'func'
   58 | func dfs(c int, edges [][]int, visited map[int]struct{}) {
      | ^~~~
main.c:58:10: error: unknown type name 'c'
   58 | func dfs(c int, edges [][]int, visited map[int]struct{}) {
      |          ^
main.c:58:17: error: unknown type name 'edges'
   58 | func dfs(c int, edges [][]int, visited map[int]struct{}) {
      |                 ^~~~~
main.c:58:32: error: unknown type name 'visited'
   58 | func dfs(c int, edges [][]int, visited map[int]struct{}) {
      |                                ^~~~~~~
main.c:70:1: error: unknown type name 'func'
   70 | func bfs(c int, graph *Graph) {
      | ^~~~
main.c:70:10: error: unknown type name 'c'
   70 | func bfs(c int, graph *Graph) {
      |          ^
main.c:70:17: error: unknown type name 'graph'
   70 | func bfs(c int, graph *Graph) {
      |                 ^~~~~
main.c:93:1: error: unknown type name 'func'
   93 | func getInt() int {
      | ^~~~
main.c: In function 'getInt':
main.c:93:19: error: expected identifier or '(' before '{' token
   93 | func getInt() int {
      |                   ^
main.c:102:1: error: unknown type name 'func'
  102 | func getIntArray(n int) []int {
      | ^~~~
main.c:102:18: error: unknown type name 'n'
  102 | func getIntArray(n int) []int {
      |                  ^
main.c:110:1: error: unknown type name 'func'
  110 | func getString() string {
      | ^~~~
main.c:110:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'string'
  110 | func getString() string {
      |                  ^~~~~~
main.c:115:1: error: unknown type name 'func'
  115 | func abs(a int) int {
      | ^~~~
main.c:115:10: error: unknown type name 'a'
  115 | func abs(a int) int {
      |          ^
main.c:119:1: error: unknown type name 'func'
  119 | func pow(p, q int) int {
      | ^~~~
main.c:119:14: error: expected ')' before 'int'
  119 | func pow(p, q int) int {
      |              ^~~~
      |              )
main.c:123:1: error: unknown type name 'func'
  123 | func powMod(n, p int) int {
      | ^~~~
main.c:123:17: error: expected ')' before 'int'
  123 | func powMod(n, p int) int {
      |                 ^~~~
      |                 )
main.c:134:1: error: unknown type name 'func'
  134 | func min(nums ...int) int {
      | ^~~~
main.c:134:14: error: expected ')' before '...' token
  134 | func min(nums ...int) int {
      |              ^~~~
      |              )
main.c:145:1: error: unknown type name 'func'
  145 | func max(nums ...int) int {
      | ^~~~
main.c:145:14: error: expected ')' before '...' token
  145 | func max(nums ...int) int {
      |              ^~~~
      |              )
main.c:156:1: error: unknown type name 'func'
  156 | func strSearch(a []string, b string) bool {
      | ^~~~
main.c:156:16: error: unknown type name 'a'
  156 | func strSearch(a []string, b string) bool {
      |                ^
main.c:156:28: error: unknown type name 'b'
  156 | func strSearch(a []string, b string) bool {
      |                            ^
main.c:165:1: error: unknown type name 'func'
  165 | func printIntArray(array []int) {
      | ^~~~
main.c:165:20: error: unknown type name 'array'
  165 | func printIntArray(array []int) {
      |                    ^~~~~
main.c:170:1: error: unknown type name 'func'
  170 | func calcMod(x int) int {
      | ^~~~
main.c:170:14: error: unknown type name 'x'
  170 | func calcMod(x int) int {
      |              ^
main.c:174:1: error: unknown type name 'func'
  174 | func reverse(s string) string {
      | ^~~~
main.c:174:14: error: unknown type name 's'
  174 | func reverse(s string) string {
      |              ^
main.c:182:1: error: unknown type name 'func'
  182 | func isPrime(n int) bool {
      | ^~~~
main.c:182:14: error: unknown type name 'n'
  182 | func isPrime(n int) bool {
      |              ^
main.c:201:1: error: unknown type name 'func'
  201 | func contains(s []int, e int) bool {
      | ^~~~
main.c:201:15: error: unknown type name 's'
  201 | func contains(s []int, e int) bool {
      |               ^
main.c:201:24: error: unknown type name 'e'
  201 | func contains(s []int, e int) bool {
      |                        ^
main.c:210:1: error: unknown type name 'func'
  210 | func makeRange(min, max int) []int {
      | ^~~~
main.c:210:24: error: expected ')' before 'int'
  210 | func makeRange(min, max int) []int {
      |                        ^~~~
      |                        )
main.c:218:1: error: unknown type name 'func'
  218 | func powerset2(nums []int) [][]int {
      | ^~~~
main.c:218:16: error: unknown type name 'nums'
  218 | func powerset2(nums []int) [][]int {
      |                ^~~~
main.c:237:1: error: unknown type name 'func'
  237 | func copyAndAppend(nums []int, n int) []int {
      | ^~~~
main.c:237:20: error: unknown type name 'nums'
  237 | func copyAndAppend(nums []int, n int) []int {
      |                    ^~~~
main.c:237:32: error: unknown type name 'n'
  237 | func copyAndAppend(nums []int, n int) []int {
      |                                ^
main.c:244:1: error: unknown type name 'func'
  244 | func calcGcd(x, y int) int {
      | ^~~~
main.c:244:18: error: expected ')' before 'int'
  244 | func calcGcd(x, y int) int {
      |                  ^~~~
      |                  )
main.c:254:1: error: unknown type name 'func'
  254 | func getDivisor(n int) []int {
      | ^~~~
main.c:254:17: error: unknown type name 'n'
  254 | func getDivisor(n int) []int {
      |                 ^
main.c:271:1: error: unknown type name 'type'; did you mean 'typeof'?
  271 | type intHeap []int
      | ^~~~
      | typeof
main.c:271:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
  271 | type intHeap []int
      |                ^~~
main.c:277:1: error: expected declaration specifiers before 'func'
  277 | func (h intHeap) Less(i, j int) bool {
      | ^~~~
main.c:281:1: error: expected declaration specifiers before 'func'
  281 | func (h intHeap) Swap(i, j int) {
      | ^~~~
main.c:285:1: error: expected declaration specifiers before 'func'
  285 | func (h *intHeap) Push(x interface{}) {
      | ^~~~
main.c:285:37: error: expected declaration specifiers before ')' token
  285 | func (h *intHeap) Push(x interface{}) {
      |                                     ^
main.c:289:1: error: expected declaration specifiers before 'func'
  289 | func (h *intHeap) Pop() interface{} {
      | ^~~~
main.c:290:14: error: expected expression before '=' token
  290 |         old := *h
      |              ^
main.c:290:17: error: 'h' undeclared (first use in this function)
  290 |         old := *h
      |                 ^
main.c:290:17: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:297:1: error: unknown type name 'func'
  297 | func initHeap() *intHeap {
      | ^~~~
main.c: In function 'initHeap':
main.c:297:17: error: expected declaration specifiers before '*' token
  297 | func initHeap() *intHeap {
      |                 ^
main.c:303:1: error: expected declaration specifiers before 'func'
  303 | func (h *intHeap) pushHeap(n int) {
      | ^~~~
main.c:307:1: error: expected declaration specifiers before 'func'
  307 | func (h *intHeap) popHeap() int {
      | ^~~~
main.c:311:1: error: unknown type name 'func'
  311 | func factMod(n int) int {
      | ^~~~
main.c:311:14: error: unknown type name 'n'
  311 | func factMod(n int) int {
      |              ^
main.c:319:1: error: unknown type name 'func'
  319 | func combinationMod(n, k int) int {
      | ^~~~
main.c:319:25: error: expected ')' before 'int'
  319 | func combinationMod(n, k int) int {
      |                         ^~~~
      |                         )
main.c:327: error: expected '{' at end of input