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

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

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

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

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

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

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

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

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

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

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

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

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