#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int t, i, u[99], p = 0;
  char s[99];
  scanf("%d", &t);
  for (i = 0; i < t; i++)
    scanf("%s", s);
  for (i = 0; s[i] != '\0'; i++) {
    u[i] = s[i];
    if (u[i] <= 122 && u[i] >= 43) {
      continue;
    } else
      p++;
  }
  if (p == 0)
    printf("\nYES");
  else
    printf("\nNO");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1a4(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1184 <main+0x64>
lea    -0x210(%rbp),%rsi
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1155 <main+0x35>
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
movsbl -0x210(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     1202 <main+0xe2>
movslq -0xc(%rbp),%rax
movsbl -0x210(%rbp,%rax,1),%ecx
ff
movslq -0xc(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
movslq -0xc(%rbp),%rax
cmpl   $0x7a,-0x1a0(%rbp,%rax,4)
7a
jg     11e0 <main+0xc0>
movslq -0xc(%rbp),%rax
cmpl   $0x2b,-0x1a0(%rbp,%rax,4)
2b
jl     11e0 <main+0xc0>
jmp    11f4 <main+0xd4>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    11f4 <main+0xd4>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118b <main+0x6b>
cmpl   $0x0,-0x1a4(%rbp)
jne    1220 <main+0x100>
lea    0xdf0(%rip),%rdi
call   1030 <printf@plt>
jmp    122c <main+0x10c>
lea    0xde4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
lea    0xecf(%rip),%rdi
xor    %ebp,%ebp
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    1187 <main+0x67>
lea    0xeb6(%rip),%r14
lea    0x10(%rsp),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    $0x1,%ebx
cmp    0xc(%rsp),%ebx
jl     1160 <main+0x40>
mov    0x10(%rsp),%al
test   %al,%al
jne    1187 <main+0x67>
lea    0xe81(%rip),%rdi
jmp    11b6 <main+0x96>
lea    0x11(%rsp),%rcx
nopl   0x0(%rax)
add    $0x85,%al
cmp    $0xb0,%al
adc    $0x0,%ebp
movzbl (%rcx),%eax
add    $0x1,%rcx
test   %al,%al
jne    1190 <main+0x70>
test   %ebp,%ebp
lea    0xe5b(%rip),%rax
lea    0xe59(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"\0AYES\00"
@.str.3 = [4 x i8] c"\0ANO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [99 x i32]
%5 = alloca i32
%6 = alloca [99 x i8]
store i32 0, i32* %1
store i32 0, i32* %5
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 0, i32* %3
br label %8
8: ; preds = %15, %0
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %18
12: ; preds = %8
%13 = getelementptr inbounds [99 x i8], [99 x i8]* %6, i64 0, i64 0
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %12
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %8
18: ; preds = %8
store i32 0, i32* %3
br label %19
19: ; preds = %51, %18
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [99 x i8], [99 x i8]* %6, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %54
26: ; preds = %19
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [99 x i8], [99 x i8]* %6, i64 0, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = load i32, i32* %3
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [99 x i32], [99 x i32]* %4, i64 0, i64 %33
store i32 %31, i32* %34
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [99 x i32], [99 x i32]* %4, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = icmp sle i32 %38, 122
br i1 %39, label %40, label %47
40: ; preds = %26
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [99 x i32], [99 x i32]* %4, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = icmp sge i32 %44, 43
br i1 %45, label %46, label %47
46: ; preds = %40
br label %51
47: ; preds = %40, %26
%48 = load i32, i32* %5
%49 = add nsw i32 %48, 1
store i32 %49, i32* %5
br label %50
50: ; preds = %47
br label %51
51: ; preds = %50, %46
%52 = load i32, i32* %3
%53 = add nsw i32 %52, 1
store i32 %53, i32* %3
br label %19
54: ; preds = %19
%55 = load i32, i32* %5
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %61
59: ; preds = %54
%60 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %61
61: ; preds = %59, %57
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"\0AYES\00"
@.str.3 = [4 x i8] c"\0ANO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [99 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [99 x i8], [99 x i8]* %2, i64 0, i64 0
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 0
br i1 %7, label %13, label %11
8: ; preds = %13
%9 = load i8, i8* %4
%10 = icmp eq i8 %9, 0
br i1 %10, label %34, label %11
11: ; preds = %0, %8
%12 = phi i8 [ %9, %8 ], [ undef, %0 ]
br label %19
13: ; preds = %0, %13
%14 = phi i32 [ %16, %13 ], [ 0, %0 ]
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%16 = add nuw nsw i32 %14, 1
%17 = load i32, i32* %1
%18 = icmp slt i32 %16, %17
br i1 %18, label %13, label %8
19: ; preds = %11, %19
%20 = phi i64 [ %27, %19 ], [ 0, %11 ]
%21 = phi i8 [ %29, %19 ], [ %12, %11 ]
%22 = phi i32 [ %26, %19 ], [ 0, %11 ]
%23 = add i8 %21, -123
%24 = icmp ult i8 %23, -80
%25 = zext i1 %24 to i32
%26 = add nuw nsw i32 %22, %25
%27 = add nuw nsw i64 %20, 1
%28 = getelementptr inbounds [99 x i8], [99 x i8]* %2, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = icmp eq i8 %29, 0
br i1 %30, label %31, label %19
31: ; preds = %19
%32 = icmp eq i32 %26, 0
%33 = select i1 %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0)
br label %34
34: ; preds = %31, %8
%35 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %8 ], [ %33, %31 ]
%36 = call i32 @printf(i8* dereferenceable(1) %35)
ret i32 0
}