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

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

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

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

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

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

d = A("d")
g = B("g")
l = C("l")
j = D("j")
b = E("b")
f = F("f")
i = F("i")
e = A("e")
n = B("n")
h = D("h")

d.s = h
d.r = h
d.y = g
d.q = l
g.s = n
g.x = f
g.o = f
l.w = b
j.o = e
j.q = h
j.s = h
j.u = i
j.x = i
j.z = n
b.v = l
b.o = l
b.q = h
b.p = h
f.t = d
i.t = e
e.s = j
e.r = j
e.y = n
e.q = l
n.s = g
n.x = i
n.o = f
h.o = d
h.q = j
h.s = j
h.u = i
h.z = n
h.x = f
assert e.q.w.q.u.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: B = None
        self.q: C = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

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

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

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

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

d = A("d")
g = B("g")
l = C("l")
j = D("j")
b = E("b")
f = F("f")
i = F("i")
e = A("e")
n = B("n")
h = D("h")

d.s = h
d.r = h
d.y = g
d.q = l
g.s = n
g.x = f
g.o = f
l.w = b
j.o = e
j.q = h
j.s = h
j.u = i
j.x = i
j.z = n
b.v = l
b.o = l
b.q = h
b.p = h
f.t = d
i.t = e
e.s = j
e.r = j
e.y = n
e.q = l
n.s = g
n.x = i
n.o = f
h.o = d
h.q = j
h.s = j
h.u = i
h.z = n
h.x = f
assert e.q.w.q.u.t.s.txt == "j"