class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.x: H = None
        self.v: B = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.txt = txt

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

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

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

f = A("f")
h = B("h")
c = C("c")
i = D("i")
a = E("a")
d = F("d")
e = G("e")
l = H("l")
n = B("n")

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: C = None
        self.x: H = None
        self.v: B = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: D = None
        self.txt = txt

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

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

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

f = A("f")
h = B("h")
c = C("c")
i = D("i")
a = E("a")
d = F("d")
e = G("e")
l = H("l")
n = B("n")

f.t = d
f.s = e
h.w = l
c.v = i
c.o = i
c.r = f
c.z = e
c.s = e
c.x = h
c.u = d
c.w = l
i.o = l
i.x = l
i.y = c
i.v = n
i.r = a
a.t = h
a.x = i
d.v = a
e.p = a
e.z = h
e.u = c
e.t = i
e.y = i
l.s = f
l.u = i
l.w = n
l.p = e
n.w = l
assert f.t.v.x.v.w.u.txt == "i"