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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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