class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: E = None
        self.y: E = None
        self.t: E = None
        self.q: E = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: D = None
        self.r: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: D = None
        self.r: A = None
        self.p: C = None
        self.txt = txt

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

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