class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: H = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: A = None
        self.q: D = None
        self.r: B = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: D = None
        self.w: C = None
        self.q: D = None
        self.z: B = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: E = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

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

d = A("d")
k = B("k")
j = C("j")
n = D("n")
e = E("e")
a = F("a")
f = G("f")
h = H("h")
i = D("i")

d.q = k
d.w = h
d.t = a
k.z = a
k.v = a
k.o = f
k.r = j
k.y = j
k.q = d
j.w = e
j.t = a
n.t = f
n.z = f
n.v = d
n.q = i
n.r = k
e.v = d
e.r = d
e.s = i
e.q = i
e.w = j
e.z = k
e.x = k
a.v = k
a.u = d
f.u = h
f.w = e
f.r = a
f.v = k
h.w = e
h.z = a
h.r = a
h.v = j
h.o = f
h.p = d
i.t = f
i.z = f
i.v = d
i.q = n
i.r = k
assert a.u.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: H = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: A = None
        self.q: D = None
        self.r: B = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: D = None
        self.w: C = None
        self.q: D = None
        self.z: B = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: E = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

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

d = A("d")
k = B("k")
j = C("j")
n = D("n")
e = E("e")
a = F("a")
f = G("f")
h = H("h")
i = D("i")

d.q = k
d.w = h
d.t = a
k.z = a
k.v = a
k.o = f
k.r = j
k.y = j
k.q = d
j.w = e
j.t = a
n.t = f
n.z = f
n.v = d
n.q = i
n.r = k
e.v = d
e.r = d
e.s = i
e.q = i
e.w = j
e.z = k
e.x = k
a.v = k
a.u = d
f.u = h
f.w = e
f.r = a
f.v = k
h.w = e
h.z = a
h.r = a
h.v = j
h.o = f
h.p = d
i.t = f
i.z = f
i.v = d
i.q = n
i.r = k
assert a.u.t.u.txt == "d"