#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main(int argc, char const *argvc[]) {
  int N, M;
  scanf("%i %i", &N, &M);
  getchar();
  int map[N][M];
  for (int x = 0; x < N; x++) {
    for (int y = 0; y < M; y++) {
      scanf("%i", &map[x][y]);
    }
    getchar();
  }
  int time = 0;
  scanf("%i", &time);
  int least_time = 0;
  if (least_time >= time)
    printf("Liska bez!");
  else if (least_time == 0)
    printf("Zajac ti sam vbehne do papule!");
  else
    printf("Dnes sa nenajes.");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x51(%rbp)
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x51(%rbp),%al
call   1040 <getchar@plt>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
mov    %rax,-0x50(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x48(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    121b <main+0xeb>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1206 <main+0xd6>
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rcx
movslq -0x34(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11bc <main+0x8c>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a9 <main+0x79>
movl   $0x0,-0x3c(%rbp)
lea    0xdda(%rip),%rdi
lea    -0x3c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jl     1258 <main+0x128>
lea    0xdb8(%rip),%rdi
call   1030 <printf@plt>
jmp    1284 <main+0x154>
cmpl   $0x0,-0x40(%rbp)
jne    1273 <main+0x143>
lea    0xda8(%rip),%rdi
call   1030 <printf@plt>
jmp    127f <main+0x14f>
lea    0xdb6(%rip),%rdi
call   1030 <printf@plt>
jmp    1284 <main+0x154>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xeb8(%rip),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %rsp,-0x48(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%ecx
mov    %rcx,-0x40(%rbp)
imul   %rcx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
cmpl   $0x0,-0x30(%rbp)
jle    11f0 <main+0xc0>
shlq   $0x2,-0x40(%rbp)
lea    0xe6c(%rip),%r14
xor    %r15d,%r15d
jmp    11b8 <main+0x88>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
add    $0x1,%r15
movslq -0x30(%rbp),%rax
add    -0x40(%rbp),%r13
cmp    %rax,%r15
jge    11f0 <main+0xc0>
cmpl   $0x0,-0x2c(%rbp)
jle    11a0 <main+0x70>
mov    %r13,%rbx
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r12
jl     11d0 <main+0xa0>
jmp    11a0 <main+0x70>
movl   $0x0,-0x34(%rbp)
lea    0xe05(%rip),%rdi
lea    -0x34(%rbp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,-0x34(%rbp)
lea    0xdf2(%rip),%rax
lea    0xdf6(%rip),%rdi
cmovle %rax,%rdi
call   1030 <printf@plt>
mov    -0x48(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%i %i\00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [11 x i8] c"Liska bez!\00"
@.str.3 = [31 x i8] c"Zajac ti sam vbehne do papule!\00"
@.str.4 = [17 x i8] c"Dnes sa nenajes.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7)
%16 = call i32 (...) @getchar()
%17 = load i32, i32* %6
%18 = zext i32 %17 to i64
%19 = load i32, i32* %7
%20 = zext i32 %19 to i64
%21 = call i8* @llvm.stacksave()
store i8* %21, i8** %8
%22 = mul nuw i64 %18, %20
%23 = alloca i32, i64 %22
store i64 %18, i64* %9
store i64 %20, i64* %10
store i32 0, i32* %11
br label %24
24: ; preds = %47, %2
%25 = load i32, i32* %11
%26 = load i32, i32* %6
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %50
28: ; preds = %24
store i32 0, i32* %12
br label %29
29: ; preds = %42, %28
%30 = load i32, i32* %12
%31 = load i32, i32* %7
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %45
33: ; preds = %29
%34 = load i32, i32* %11
%35 = sext i32 %34 to i64
%36 = mul nsw i64 %35, %20
%37 = getelementptr inbounds i32, i32* %23, i64 %36
%38 = load i32, i32* %12
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, i32* %37, i64 %39
%41 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %40)
br label %42
42: ; preds = %33
%43 = load i32, i32* %12
%44 = add nsw i32 %43, 1
store i32 %44, i32* %12
br label %29
45: ; preds = %29
%46 = call i32 (...) @getchar()
br label %47
47: ; preds = %45
%48 = load i32, i32* %11
%49 = add nsw i32 %48, 1
store i32 %49, i32* %11
br label %24
50: ; preds = %24
store i32 0, i32* %13
%51 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
store i32 0, i32* %14
%52 = load i32, i32* %14
%53 = load i32, i32* %13
%54 = icmp sge i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %50
%56 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %65
57: ; preds = %50
%58 = load i32, i32* %14
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %64
62: ; preds = %57
%63 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %64
64: ; preds = %62, %60
br label %65
65: ; preds = %64, %55
store i32 0, i32* %3
%66 = load i8*, i8** %8
%67 = load i32, i32* %3
ret i32 %67
}

LLVM IR (-O2):
@.str = [6 x i8] c"%i %i\00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [11 x i8] c"Liska bez!\00"
@.str.3 = [31 x i8] c"Zajac ti sam vbehne do papule!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%9 = call i32 (...) @getchar()
%10 = load i32, i32* %3
%11 = zext i32 %10 to i64
%12 = load i32, i32* %4
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
%15 = mul nuw i64 %13, %11
%16 = alloca i32, i64 %15
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %2, %33
%20 = phi i64 [ %35, %33 ], [ 0, %2 ]
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = mul nuw nsw i64 %20, %13
%25 = getelementptr inbounds i32, i32* %16, i64 %24
br label %39
26: ; preds = %33, %2
%27 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%28 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%29 = load i32, i32* %5
%30 = icmp slt i32 %29, 1
%31 = select i1 %30, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0)
%32 = call i32 @printf(i8* dereferenceable(1) %31)
ret i32 0
33: ; preds = %39, %19
%34 = call i32 (...) @getchar()
%35 = add nuw nsw i64 %20, 1
%36 = load i32, i32* %3
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %35, %37
br i1 %38, label %19, label %26
39: ; preds = %23, %39
%40 = phi i64 [ 0, %23 ], [ %43, %39 ]
%41 = getelementptr inbounds i32, i32* %25, i64 %40
%42 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %41)
%43 = add nuw nsw i64 %40, 1
%44 = load i32, i32* %4
%45 = sext i32 %44 to i64
%46 = icmp slt i64 %43, %45
br i1 %46, label %39, label %33
}