class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: F = None
        self.x: B = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: A = None
        self.q: A = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: D = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: A = None
        self.u: D = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: B = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

b = A("b")
i = B("i")
k = C("k")
m = D("m")
c = E("c")
n = F("n")
d = G("d")
h = H("h")
l = F("l")

b.t = m
b.o = l
b.x = i
b.q = c
i.o = d
i.r = b
i.q = b
i.x = h
k.v = d
k.z = m
k.t = h
m.t = l
m.z = b
m.u = b
m.v = c
m.q = i
m.o = i
m.x = i
m.r = i
c.y = m
c.u = m
c.s = b
c.v = b
n.x = h
n.r = l
n.t = c
n.s = i
n.q = i
n.y = i
n.p = k
n.u = b
d.t = i
d.v = i
h.u = d
h.q = i
h.o = c
h.p = n
l.x = h
l.r = n
l.t = c
l.s = i
l.q = i
l.y = i
l.p = k
l.u = b
assert d.t.q.q.y.t.u.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: F = None
        self.x: B = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: A = None
        self.q: A = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: D = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: A = None
        self.u: D = None
        self.v: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: B = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

b = A("b")
i = B("i")
k = C("k")
m = D("m")
c = E("c")
n = F("n")
d = G("d")
h = H("h")
l = F("l")

b.t = m
b.o = l
b.x = i
b.q = c
i.o = d
i.r = b
i.q = b
i.x = h
k.v = d
k.z = m
k.t = h
m.t = l
m.z = b
m.u = b
m.v = c
m.q = i
m.o = i
m.x = i
m.r = i
c.y = m
c.u = m
c.s = b
c.v = b
n.x = h
n.r = l
n.t = c
n.s = i
n.q = i
n.y = i
n.p = k
n.u = b
d.t = i
d.v = i
h.u = d
h.q = i
h.o = c
h.p = n
l.x = h
l.r = n
l.t = c
l.s = i
l.q = i
l.y = i
l.p = k
l.u = b
assert d.t.q.q.y.t.u.t.t.txt == "l"