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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: 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.z: C = None
        self.v: F = None
        self.y: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.u: A = None
        self.t: C = None
        self.v: F = None
        self.txt = txt

e = A("e")
m = B("m")
d = C("d")
a = D("a")
b = E("b")
j = F("j")
g = G("g")
l = C("l")

e.v = j
e.t = j
e.x = j
e.u = d
e.q = a
e.y = g
m.u = l
m.p = b
d.o = j
a.z = d
a.y = d
a.v = j
a.p = e
b.w = j
b.r = a
b.y = a
b.o = g
b.s = l
b.u = m
b.p = m
j.o = b
j.v = m
j.y = a
j.x = e
g.p = e
g.q = e
g.u = e
g.t = l
g.v = j
l.o = j
assert d.o.y.p.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: C = None
        self.q: D = None
        self.y: G = None
        self.t: F = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: 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.z: C = None
        self.v: F = None
        self.y: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.u: A = None
        self.t: C = None
        self.v: F = None
        self.txt = txt

e = A("e")
m = B("m")
d = C("d")
a = D("a")
b = E("b")
j = F("j")
g = G("g")
l = C("l")

e.v = j
e.t = j
e.x = j
e.u = d
e.q = a
e.y = g
m.u = l
m.p = b
d.o = j
a.z = d
a.y = d
a.v = j
a.p = e
b.w = j
b.r = a
b.y = a
b.o = g
b.s = l
b.u = m
b.p = m
j.o = b
j.v = m
j.y = a
j.x = e
g.p = e
g.q = e
g.u = e
g.t = l
g.v = j
l.o = j
assert d.o.y.p.y.v.txt == "j"