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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: B = None
        self.v: E = None
        self.u: C = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: B = None
        self.o: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.o: B = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: B = None
        self.u: B = None
        self.txt = txt

d = A("d")
b = B("b")
h = C("h")
g = D("g")
m = E("m")
c = E("c")
f = D("f")
j = B("j")
a = D("a")

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: B = None
        self.v: E = None
        self.u: C = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: B = None
        self.o: E = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.o: B = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: B = None
        self.u: B = None
        self.txt = txt

d = A("d")
b = B("b")
h = C("h")
g = D("g")
m = E("m")
c = E("c")
f = D("f")
j = B("j")
a = D("a")

d.v = a
d.s = j
d.r = j
d.u = m
b.x = d
b.t = j
b.v = m
b.r = m
b.u = h
h.u = j
h.q = j
h.o = c
h.y = m
g.x = f
g.s = f
g.t = j
g.o = j
g.z = h
m.t = g
m.w = j
m.u = j
c.t = f
c.w = j
c.u = j
f.x = a
f.s = a
f.t = b
f.o = b
f.z = h
j.x = d
j.t = b
j.v = c
j.u = h
j.r = m
a.x = f
a.s = f
a.t = j
a.o = b
a.z = h
assert c.t.o.t.t.txt == "b"