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t
p
u
t

o
f

t
h
e

a
c
t
u
a
l

f
l
i
p

f
l
o
p
.

T
h
e

f
o
l
l
o
w
i
n
g
f
l
i
p

f
l
o
p

c
o
n
v
e
r
s
i
o
n
s

w
i
l
l

b
e
d
e
s
c
r
i
b
e
d

i
n

t
h
i
s

a
r
t
i
c
l
e
.
 S
R

F
l
i
p

F
l
o
p

t
o

J
K

F
l
i
p

F
l
o
p
 J
K

F
l
i
p

F
l
o
p

t
o

S
R

F
l
i
p

F
l
o
p
 S
R

F
l
i
p

F
l
o
p

t
o

F
l
i
p

F
l
o
p
 D

F
l
i
p

F
l
o
p

t
o

S
R

F
l
i
p

F
l
o
p
 J
K

F
l
i
p

F
l
o
p

t
o

F
l
i
p

F
l
o
p
 J
K

F
l
i
p
F
l
o
p

t
o

F
l
i
p

F
l
o
p
 D

F
l
i
p

F
l
o
p

t
o

J
K

F
l
i
p

F
l
o
p
S
o
,

l
e
t
s

s
t
a
r
t

w
i
t
h

S
R

F
l
i
p

t
o

J
K

F
l
i
p

F
l
o
p
,

b
e
f
o
r
e

t
h
a
t

w
e

n
e
e
d

t
o

d
o

s
o
m
e

r
e
s
e
a
r
c
h

l
i
k
e

h
o
w

w
h
a
t

a
r
e

t
h
e

s
i
m
i
l
a
r
i
t
i
e
s

a
n
d

d
i
f
f
e
r
e
n
c
e
s

b
e
t
w
e
e
n

S
R

a
n
d

J
K

F
l
i
p
F
l
o
p
,

S
i
m
i
l
a
r
i
t
y
:
W
i
t
h

t
h
e

e
x
c
e
p
t
i
o
n

o
f

o
n
e

o
f

t
h
e

f
u
n
c
t
i
o
n

t
a
b
l
e

e
n
t
r
i
e
s
,

J
-
K

f
l
i
p
-
f
l
o
p

f
u
n
c
t
i
o
n
s

s
i
m
i
l
a
r
l
y

t
o

a
n

R
-
S

f
l
i
p
-
f
l
o
p
.

T
h
e

i
n
p
u
t

c
o
m
b
i
n
a
t
i
o
n

(
i
n

t
h
e

c
a
s
e

o
f

f
l
i
p
-
f
l
o
p

w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
a
b
l
e
f
o
r

t
h
e

S
R

f
l
i
p

f
l
o
p

a
n
d

J
K

f
l
i
p

f
l
o
p

i
n

o
r
d
e
r

t
o

c
o
n
v
e
r
t

t
h
e

S
R

f
l
i
p

f
l
o
p

t
o

t
h
e

J
K

f
l
i
p

f
l
o
p
.

S
e
e

t
h
e

c
o
m
b
i
n
e
d

t
r
u
t
h

t
a
b
l
e

f
o
r

t
h
e
S
R

f
l
i
p
-
f
l
o
p

a
n
d

J
K

f
l
i
p
-
f
l
o
p

i
n

t
h
e

t
a
b
l
e

b
e
l
o
w
.

T
h
e

t
r
u
t
h

t
a
b
l
e

a
b
o
v
e

e
x
p
l
a
i
n
s

t
h
e

m
a
n
y

i
n
p
u
t
s

r
e
q
u
i
r
e
d

t
o

p
r
o
d
u
c
e

t
h
e

r
e
s
u
l
t
Q
.

S
t
e
p

2
:
W
e

c
a
n

n
o
w

d
r
a
w

t
h
e

K
a
r
n
a
u
g
h

m
a
p

f
o
r

i
n
p
u
t

a
n
d

u
s
i
n
g

t
h
e

t
r
u
t
h

t
a
b
l
e

m
e
n
t
i
o
n
e
d

a
b
o
v
e
.

T
h
e

r
e
l
a
t
i
o
n
s
h
i
p

b
e
t
w
e
e
n

S
R

a
n
d

J
K

m
a
y

t
h
e
n
b
e

u
n
d
e
r
s
t
o
o
d

w
i
t
h

e
a
s
e
.

A
d
d
i
t
i
o
n
a
l
l
y
,

w
e

c
a
n

c
o
n
v
e
r
t

a
n

S
R

f
l
i
p

f
l
o
p

t
o

J
K

f
l
i
p

f
l
o
p
.
S
e
e

b
e
l
o
w

f
o
r

d
e
t
a
i
l
s
.
N
o
w

t
h
a
t

w
e

h
a
v
e

t
h
e

a
b
o
v
e

K
a
r
n
a
u
g
h

m
a
p
,

w
e

c
a
n

d
e
t
e
r
m
i
n
e
t
h
a
t

J
Q

a
n
d

K
Q
.

S
t
e
p
3
:
N
o
w
,

u
s
i
n
g

F
l
i
p

F
l
o
p
,

i
t

i
s

s
i
m
p
l
e

t
o

c
o
n
s
t
r
u
c
t

J
K

F
l
i
p

F
l
o
p

a
c
c
o
r
d
i
n
g

t
o

t
h
e

r
e
l
a
t
i
o
n
s
h
i
p

b
e
t
w
e
e
n

a
n
d

K
f
r
o
m

t
h
e

K
a
r
n
a
u
g
h

m
a
p
.
H
o
p
e
f
u
l
l
y
,

t
h
e

p
r
o
c
e
d
u
r
e
s

a
b
o
v
e

w
i
l
l

m
a
k
e

i
t

s
i
m
p
l
e

t
o

e
x
a
m
i
n
e

C
o
n
v
e
r
s
i
o
n

o
f

S
R

F
l
i
p

f
l
o
p

t
o

J
K

F
l
i
p

f
l
o
p
.

Você também pode gostar