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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: F = None
        self.s: H = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: F = None
        self.s: H = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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