class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: G = None
        self.w: D = None
        self.x: F = None
        self.u: H = None
        self.r: F = None
        self.v: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: D = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: H = None
        self.x: A = None
        self.o: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: D = None
        self.txt = txt

c = A("c")
n = B("n")
j = C("j")
f = D("f")
l = E("l")
g = F("g")
e = G("e")
i = H("i")
a = F("a")
k = E("k")

c.s = j
c.y = e
c.w = f
c.x = a
c.u = i
c.v = i
c.r = g
n.v = f
n.y = c
n.u = k
j.t = i
j.u = f
j.z = g
f.w = i
f.t = i
f.o = i
f.x = c
l.q = c
l.u = c
l.y = n
l.w = f
l.s = f
g.x = n
g.p = e
e.v = i
e.t = i
e.q = j
i.s = j
i.q = f
a.x = n
a.p = e
k.q = c
k.u = c
k.y = n
k.w = f
k.s = f
assert a.x.u.s.x.s.z.x.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: G = None
        self.w: D = None
        self.x: F = None
        self.u: H = None
        self.r: F = None
        self.v: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: D = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: H = None
        self.x: A = None
        self.o: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: D = None
        self.txt = txt

c = A("c")
n = B("n")
j = C("j")
f = D("f")
l = E("l")
g = F("g")
e = G("e")
i = H("i")
a = F("a")
k = E("k")

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