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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.u: A = None
        self.p: E = None
        self.t: F = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.s: B = None
        self.t: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: D = None
        self.q: E = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

k = A("k")
d = B("d")
e = C("e")
l = D("l")
b = E("b")
h = F("h")
c = E("c")
j = C("j")

k.s = d
k.o = b
k.x = h
d.o = h
d.s = h
d.p = e
d.z = e
e.w = l
e.s = l
e.u = k
e.r = k
e.p = b
e.t = h
l.w = h
l.p = d
l.s = d
l.t = j
b.v = h
h.s = j
h.p = l
h.y = l
h.q = b
h.x = k
c.v = h
j.w = l
j.s = l
j.u = k
j.r = k
j.p = b
j.t = h
assert c.v.s.s.w.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: E = None
        self.x: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.u: A = None
        self.p: E = None
        self.t: F = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.s: B = None
        self.t: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: D = None
        self.q: E = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

k = A("k")
d = B("d")
e = C("e")
l = D("l")
b = E("b")
h = F("h")
c = E("c")
j = C("j")

k.s = d
k.o = b
k.x = h
d.o = h
d.s = h
d.p = e
d.z = e
e.w = l
e.s = l
e.u = k
e.r = k
e.p = b
e.t = h
l.w = h
l.p = d
l.s = d
l.t = j
b.v = h
h.s = j
h.p = l
h.y = l
h.q = b
h.x = k
c.v = h
j.w = l
j.s = l
j.u = k
j.r = k
j.p = b
j.t = h
assert c.v.s.s.w.s.txt == "j"