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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: A = None
        self.w: E = None
        self.txt = txt

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

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

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

m = A("m")
k = B("k")
c = C("c")
b = D("b")
i = E("i")
h = C("h")
f = A("f")
n = C("n")
d = A("d")
g = E("g")

m.s = b
m.w = i
m.t = i
m.o = k
m.q = k
k.v = g
k.w = g
k.y = f
c.z = n
c.s = i
b.x = k
i.s = b
i.p = b
i.t = g
h.z = c
h.s = i
f.s = b
f.w = g
f.t = g
f.o = k
f.q = k
n.z = c
n.s = g
d.s = b
d.w = i
d.o = k
d.q = k
d.t = g
g.s = b
g.p = b
g.t = i
assert g.s.x.v.t.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: E = None
        self.o: B = None
        self.t: E = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: A = None
        self.w: E = None
        self.txt = txt

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

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

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

m = A("m")
k = B("k")
c = C("c")
b = D("b")
i = E("i")
h = C("h")
f = A("f")
n = C("n")
d = A("d")
g = E("g")

m.s = b
m.w = i
m.t = i
m.o = k
m.q = k
k.v = g
k.w = g
k.y = f
c.z = n
c.s = i
b.x = k
i.s = b
i.p = b
i.t = g
h.z = c
h.s = i
f.s = b
f.w = g
f.t = g
f.o = k
f.q = k
n.z = c
n.s = g
d.s = b
d.w = i
d.o = k
d.q = k
d.t = g
g.s = b
g.p = b
g.t = i
assert g.s.x.v.t.t.t.txt == "i"