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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.y: H = None
        self.t: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: B = None
        self.p: G = None
        self.u: D = None
        self.txt = txt

e = A("e")
n = B("n")
d = C("d")
k = D("k")
m = E("m")
g = F("g")
b = G("b")
c = H("c")
l = C("l")
f = A("f")

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.y: H = None
        self.t: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: B = None
        self.p: G = None
        self.u: D = None
        self.txt = txt

e = A("e")
n = B("n")
d = C("d")
k = D("k")
m = E("m")
g = F("g")
b = G("b")
c = H("c")
l = C("l")
f = A("f")

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