class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.u: D = None
        self.p: D = None
        self.y: E = None
        self.o: E = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: E = None
        self.t: E = None
        self.y: C = None
        self.u: B = None
        self.x: C = None
        self.v: C = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.u: D = None
        self.p: D = None
        self.y: E = None
        self.o: E = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: E = None
        self.t: E = None
        self.y: C = None
        self.u: B = None
        self.x: C = None
        self.v: C = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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