class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.y: E = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: B = None
        self.p: I = None
        self.v: D = None
        self.u: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: C = None
        self.t: C = None
        self.y: E = None
        self.txt = txt

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

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

h = A("h")
k = B("k")
j = C("j")
l = D("l")
e = E("e")
i = F("i")
d = G("d")
a = H("a")
g = I("g")

h.x = j
h.w = k
h.y = e
h.v = i
k.q = a
k.o = d
j.y = e
j.w = e
j.z = l
l.o = e
e.x = k
e.z = k
e.p = g
e.u = g
e.v = l
i.t = d
d.z = a
d.s = j
d.t = j
d.y = e
a.p = d
a.x = d
a.q = d
a.y = d
a.r = k
a.o = k
a.u = k
a.w = j
a.v = l
g.p = h
g.r = h
g.y = h
g.z = h
g.w = i
g.t = d
g.x = k
g.s = j
assert g.z.v.t.t.z.o.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: B = None
        self.y: E = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: B = None
        self.p: I = None
        self.v: D = None
        self.u: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: C = None
        self.t: C = None
        self.y: E = None
        self.txt = txt

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

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

h = A("h")
k = B("k")
j = C("j")
l = D("l")
e = E("e")
i = F("i")
d = G("d")
a = H("a")
g = I("g")

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