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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.z: E = None
        self.o: H = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: C = None
        self.x: A = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: C = None
        self.t: F = None
        self.w: D = None
        self.y: C = None
        self.z: D = None
        self.u: A = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.z: E = None
        self.o: H = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: C = None
        self.x: A = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: C = None
        self.t: F = None
        self.w: D = None
        self.y: C = None
        self.z: D = None
        self.u: A = None
        self.q: B = None
        self.txt = txt

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

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

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