class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: H = None
        self.z: E = None
        self.o: D = None
        self.y: B = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.p: H = None
        self.q: H = None
        self.z: H = None
        self.s: D = None
        self.y: H = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.p: H = None
        self.q: H = None
        self.z: H = None
        self.s: D = None
        self.y: H = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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