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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: C = None
        self.s: A = None
        self.t: F = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

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

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

j.t = i
j.z = a
n.x = i
i.x = l
i.r = l
i.t = j
i.s = m
i.z = a
i.q = d
m.o = a
a.u = l
a.s = j
c.x = i
c.z = i
c.s = j
c.t = d
c.p = a
c.r = a
k.o = n
k.s = m
k.q = m
l.x = i
d.x = i
d.z = i
d.s = j
d.t = c
d.p = a
d.r = a
assert j.z.u.x.s.o.u.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: C = None
        self.s: A = None
        self.t: F = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

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

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

j.t = i
j.z = a
n.x = i
i.x = l
i.r = l
i.t = j
i.s = m
i.z = a
i.q = d
m.o = a
a.u = l
a.s = j
c.x = i
c.z = i
c.s = j
c.t = d
c.p = a
c.r = a
k.o = n
k.s = m
k.q = m
l.x = i
d.x = i
d.z = i
d.s = j
d.t = c
d.p = a
d.r = a
assert j.z.u.x.s.o.u.txt == "l"