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

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.z: D = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.s: H = None
        self.y: F = None
        self.p: D = None
        self.t: H = None
        self.u: B = None
        self.o: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.z: D = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.s: H = None
        self.y: F = None
        self.p: D = None
        self.t: H = None
        self.u: B = None
        self.o: H = None
        self.txt = txt

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

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