class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: B = None
        self.y: C = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: B = None
        self.y: I = None
        self.z: G = None
        self.r: I = None
        self.s: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.y: F = None
        self.w: A = None
        self.txt = txt

b = A("b")
m = B("m")
f = C("f")
i = D("i")
k = E("k")
d = F("d")
j = G("j")
a = H("a")
e = I("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: B = None
        self.y: I = None
        self.z: G = None
        self.r: I = None
        self.s: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.y: F = None
        self.w: A = None
        self.txt = txt

b = A("b")
m = B("m")
f = C("f")
i = D("i")
k = E("k")
d = F("d")
j = G("j")
a = H("a")
e = I("e")

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