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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: A = None
        self.p: E = None
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: F = None
        self.s: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: A = None
        self.p: E = None
        self.s: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: F = None
        self.s: C = None
        self.o: C = None
        self.txt = txt

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

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

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

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