class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: C = None
        self.w: E = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.u: I = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: I = None
        self.s: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: E = None
        self.v: D = None
        self.x: G = None
        self.p: A = None
        self.u: A = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: H = None
        self.p: E = None
        self.s: A = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.u: I = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: I = None
        self.s: H = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: E = None
        self.v: D = None
        self.x: G = None
        self.p: A = None
        self.u: A = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: H = None
        self.p: E = None
        self.s: A = None
        self.w: F = None
        self.txt = txt

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

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