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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.t: E = None
        self.r: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: C = None
        self.s: C = None
        self.q: B = None
        self.z: I = None
        self.t: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.t: E = None
        self.r: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: C = None
        self.s: C = None
        self.q: B = None
        self.z: I = None
        self.t: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: F = None
        self.txt = txt

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

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

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