int
__cdecl main(
int
argc, const char
*
*
argv, const char
*
*
envp)
{
__int64 v3;
/
/
rbx
int
v4;
/
/
ebp
__int64 v5;
/
/
rdi
int
v6;
/
/
eax
__int64 v7;
/
/
rsi
int
v8;
/
/
edi
__int64 v9;
/
/
rax
int
v10;
/
/
eax
const char
*
v11;
/
/
rcx
__int64 v13;
/
/
[rsp
+
30h
] [rbp
-
48h
] BYREF
__int64 v14;
/
/
[rsp
+
38h
] [rbp
-
40h
] BYREF
char v15[
8
];
/
/
[rsp
+
40h
] [rbp
-
38h
] BYREF
int
v16;
/
/
[rsp
+
48h
] [rbp
-
30h
]
char v17;
/
/
[rsp
+
4Ch
] [rbp
-
2Ch
]
char
Buffer
[
8
];
/
/
[rsp
+
50h
] [rbp
-
28h
] BYREF
int
v19;
/
/
[rsp
+
58h
] [rbp
-
20h
]
char v20;
/
/
[rsp
+
5Ch
] [rbp
-
1Ch
]
v3
=
0i64
;
*
(_QWORD
*
)v15
=
0i64
;
v13
=
0i64
;
v14
=
0i64
;
v16
=
0
;
v17
=
0
;
*
(_QWORD
*
)
Buffer
=
0i64
;
v19
=
0
;
v20
=
0
;
sub_140001020((
int
)
"Please input: "
, argv, envp);
v4
=
0
;
v5
=
0i64
;
while
(
1
)
{
v6
=
fgetchar();
if
( v6
=
=
10
)
break
;
v7
=
v5
+
1
;
v15[v5]
=
v6;
if
( (unsigned __int64)(v5
+
1
) >
=
0xD
)
goto LABEL_29;
v15[v7]
=
0
;
if
( v5
=
=
11
&& fgetchar() !
=
10
)
goto LABEL_27;
+
+
v4;
+
+
v5;
if
( v7 >
=
12
)
goto LABEL_10;
}
if
( (unsigned __int64)v4 >
=
0xD
)
{
LABEL_29:
_report_rangecheckfailure();
JUMPOUT(
0x1400012FBi64
);
}
v15[v4]
=
0
;
LABEL_10:
v8
=
0
;
if
( v15[
0
] )
{
v9
=
0i64
;
while
(
1
)
{
+
+
v8;
if
(
+
+
v9 >
12
)
break
;
if
( !v15[v9] )
goto LABEL_16;
}
v8
=
-
1
;
}
LABEL_16:
if
( sub_1400010E0(v15,
"%lld-%lld"
, &v13, &v14)
=
=
2
)
{
v10
=
sub_140001080(
Buffer
,
0xDui64
,
"%lld-%lld"
);
if
( v8 >
0
&& v10 >
0
&& v8
=
=
v10 )
{
while
( v15[v3]
=
=
Buffer
[v3] )
{
if
(
+
+
v3 >
=
v8 )
{
if
( v13 >
0
&& v14 >
0
&& v13 <
=
v14 && v14
+
v13
=
=
117738
)
{
v11
=
"Accepted!\n"
;
if
( v13
*
v14
=
=
3457897337i64
)
goto LABEL_28;
}
break
;
}
}
}
}
LABEL_27:
v11
=
"Wrong answer!\n"
;
LABEL_28:
sub_140001020((
int
)v11);
return
0
;
}