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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.v: A = None
        self.t: F = None
        self.r: E = None
        self.p: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: B = None
        self.o: A = None
        self.z: C = None
        self.x: G = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.q: E = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: B = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.v: A = None
        self.t: F = None
        self.r: E = None
        self.p: G = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: B = None
        self.o: A = None
        self.z: C = None
        self.x: G = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.q: E = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: B = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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