class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.p: B = None
        self.w: D = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

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

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

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