class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: C = None
        self.u: C = None
        self.q: B = None
        self.r: D = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: F = None
        self.txt = txt

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

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