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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: D = None
        self.z: H = None
        self.u: E = None
        self.t: D = None
        self.r: D = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.q: C = None
        self.s: F = None
        self.x: A = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: A = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: D = None
        self.z: H = None
        self.u: E = None
        self.t: D = None
        self.r: D = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: E = None
        self.q: C = None
        self.s: F = None
        self.x: A = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.txt = txt

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

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