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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: A = None
        self.q: G = None
        self.o: D = None
        self.w: D = None
        self.t: H = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.r: B = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: G = None
        self.u: A = None
        self.p: B = None
        self.o: E = None
        self.q: G = None
        self.v: A = None
        self.y: E = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
l = C("l")
f = D("f")
n = E("n")
j = F("j")
m = G("m")
k = H("k")
a = B("a")

d.s = c
c.u = l
c.z = l
c.x = d
c.q = m
c.o = f
c.w = f
c.t = k
l.w = c
l.r = c
l.x = n
l.v = j
f.o = d
n.u = k
n.o = k
n.t = d
j.r = k
j.t = m
j.q = m
j.u = d
j.v = d
j.p = c
j.o = n
j.y = n
m.o = a
m.q = a
m.s = n
m.r = d
m.p = c
m.u = f
m.v = f
k.z = l
k.o = l
k.t = m
k.r = j
k.u = f
k.w = d
a.u = l
a.z = l
a.x = d
a.q = m
a.o = f
a.w = f
a.t = k
assert k.t.u.o.s.u.x.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: A = None
        self.q: G = None
        self.o: D = None
        self.w: D = None
        self.t: H = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.r: B = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: G = None
        self.u: A = None
        self.p: B = None
        self.o: E = None
        self.q: G = None
        self.v: A = None
        self.y: E = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
l = C("l")
f = D("f")
n = E("n")
j = F("j")
m = G("m")
k = H("k")
a = B("a")

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