class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: I = None
        self.p: H = None
        self.x: D = None
        self.t: F = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.z: H = None
        self.u: H = None
        self.o: I = None
        self.q: E = None
        self.r: G = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: I = None
        self.t: B = None
        self.z: G = None
        self.x: A = None
        self.o: E = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: H = None
        self.t: E = None
        self.z: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: I = None
        self.s: E = None
        self.w: H = None
        self.v: F = None
        self.o: E = None
        self.r: F = None
        self.z: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.r: G = None
        self.w: C = None
        self.x: C = None
        self.v: A = None
        self.u: G = None
        self.y: D = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.o: A = None
        self.v: F = None
        self.y: C = None
        self.s: A = None
        self.z: C = None
        self.q: D = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.z: I = None
        self.x: A = None
        self.q: A = None
        self.v: F = None
        self.w: C = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: B = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

l = A("l")
b = B("b")
n = C("n")
c = D("c")
d = E("d")
g = F("g")
f = G("f")
m = H("m")
j = I("j")
k = E("k")

l.s = f
l.z = j
l.p = m
l.x = c
l.t = g
l.o = g
b.x = m
b.z = m
b.u = m
b.s = m
b.w = f
b.r = f
b.o = j
b.q = d
n.q = c
n.y = j
n.t = b
n.z = f
n.x = l
n.o = k
n.u = g
c.p = l
c.x = m
c.t = k
c.z = g
c.y = n
d.t = m
d.w = m
d.x = j
d.s = k
d.o = k
d.z = k
d.v = g
d.r = g
g.q = j
g.p = j
g.r = f
g.u = f
g.w = n
g.x = n
g.v = l
g.y = c
g.o = c
f.u = g
f.w = g
f.v = g
f.o = l
f.s = l
f.y = n
f.z = n
f.r = n
f.q = c
m.y = n
m.w = n
m.u = d
m.z = j
m.x = l
m.q = l
m.v = g
m.p = c
m.o = c
j.q = f
j.z = b
j.p = b
j.s = c
k.t = m
k.w = m
k.x = j
k.s = d
k.o = d
k.z = d
k.v = g
k.r = g
assert k.r.r.v.v.z.z.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: I = None
        self.p: H = None
        self.x: D = None
        self.t: F = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.z: H = None
        self.u: H = None
        self.o: I = None
        self.q: E = None
        self.r: G = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: I = None
        self.t: B = None
        self.z: G = None
        self.x: A = None
        self.o: E = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: H = None
        self.t: E = None
        self.z: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: I = None
        self.s: E = None
        self.w: H = None
        self.v: F = None
        self.o: E = None
        self.r: F = None
        self.z: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.r: G = None
        self.w: C = None
        self.x: C = None
        self.v: A = None
        self.u: G = None
        self.y: D = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.o: A = None
        self.v: F = None
        self.y: C = None
        self.s: A = None
        self.z: C = None
        self.q: D = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.z: I = None
        self.x: A = None
        self.q: A = None
        self.v: F = None
        self.w: C = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: B = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

l = A("l")
b = B("b")
n = C("n")
c = D("c")
d = E("d")
g = F("g")
f = G("f")
m = H("m")
j = I("j")
k = E("k")

l.s = f
l.z = j
l.p = m
l.x = c
l.t = g
l.o = g
b.x = m
b.z = m
b.u = m
b.s = m
b.w = f
b.r = f
b.o = j
b.q = d
n.q = c
n.y = j
n.t = b
n.z = f
n.x = l
n.o = k
n.u = g
c.p = l
c.x = m
c.t = k
c.z = g
c.y = n
d.t = m
d.w = m
d.x = j
d.s = k
d.o = k
d.z = k
d.v = g
d.r = g
g.q = j
g.p = j
g.r = f
g.u = f
g.w = n
g.x = n
g.v = l
g.y = c
g.o = c
f.u = g
f.w = g
f.v = g
f.o = l
f.s = l
f.y = n
f.z = n
f.r = n
f.q = c
m.y = n
m.w = n
m.u = d
m.z = j
m.x = l
m.q = l
m.v = g
m.p = c
m.o = c
j.q = f
j.z = b
j.p = b
j.s = c
k.t = m
k.w = m
k.x = j
k.s = d
k.o = d
k.z = d
k.v = g
k.r = g
assert k.r.r.v.v.z.z.txt == "b"