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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.z: G = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: F = None
        self.x: E = None
        self.w: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: H = None
        self.y: H = None
        self.q: I = None
        self.r: E = None
        self.w: G = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: D = None
        self.p: C = None
        self.w: A = None
        self.z: E = None
        self.o: E = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: B = None
        self.r: E = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: E = None
        self.z: G = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: F = None
        self.x: E = None
        self.w: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: H = None
        self.y: H = None
        self.q: I = None
        self.r: E = None
        self.w: G = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: D = None
        self.p: C = None
        self.w: A = None
        self.z: E = None
        self.o: E = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: B = None
        self.r: E = None
        self.z: D = None
        self.u: H = None
        self.txt = txt

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

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