class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: G = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.u: G = None
        self.t: C = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: A = None
        self.w: F = None
        self.x: C = None
        self.z: A = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: F = None
        self.x: H = None
        self.q: F = None
        self.y: D = None
        self.u: D = None
        self.w: C = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: A = None
        self.q: H = None
        self.o: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.w: A = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.u: G = None
        self.y: C = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
d = D("d")
i = E("i")
g = F("g")
h = G("h")
c = H("c")
b = E("b")
l = C("l")

e.s = k
e.t = k
e.x = h
e.p = d
k.s = i
k.w = h
k.u = h
k.t = l
k.x = g
j.t = c
j.u = e
j.z = e
j.w = g
j.x = l
j.o = k
d.w = e
d.r = g
i.r = b
i.t = g
i.q = g
i.x = c
i.s = c
i.y = d
i.u = d
i.w = l
g.w = d
g.x = e
g.r = e
g.q = c
g.o = j
h.o = g
h.q = g
h.r = d
h.w = e
c.r = j
c.y = j
c.p = l
c.u = h
c.w = g
c.o = i
b.r = i
b.t = g
b.q = g
b.x = c
b.s = c
b.y = d
b.u = d
b.w = j
l.t = c
l.u = e
l.z = e
l.w = g
l.x = j
l.o = k
assert k.w.q.w.r.q.p.x.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: G = None
        self.p: D = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: G = None
        self.u: G = None
        self.t: C = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: A = None
        self.w: F = None
        self.x: C = None
        self.z: A = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: F = None
        self.x: H = None
        self.q: F = None
        self.y: D = None
        self.u: D = None
        self.w: C = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: A = None
        self.q: H = None
        self.o: C = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.w: A = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.u: G = None
        self.y: C = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
d = D("d")
i = E("i")
g = F("g")
h = G("h")
c = H("c")
b = E("b")
l = C("l")

e.s = k
e.t = k
e.x = h
e.p = d
k.s = i
k.w = h
k.u = h
k.t = l
k.x = g
j.t = c
j.u = e
j.z = e
j.w = g
j.x = l
j.o = k
d.w = e
d.r = g
i.r = b
i.t = g
i.q = g
i.x = c
i.s = c
i.y = d
i.u = d
i.w = l
g.w = d
g.x = e
g.r = e
g.q = c
g.o = j
h.o = g
h.q = g
h.r = d
h.w = e
c.r = j
c.y = j
c.p = l
c.u = h
c.w = g
c.o = i
b.r = i
b.t = g
b.q = g
b.x = c
b.s = c
b.y = d
b.u = d
b.w = j
l.t = c
l.u = e
l.z = e
l.w = g
l.x = j
l.o = k
assert k.w.q.w.r.q.p.x.txt == "j"