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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: G = None
        self.z: F = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: C = None
        self.w: D = None
        self.u: C = None
        self.s: F = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: A = None
        self.r: I = None
        self.x: B = None
        self.w: G = None
        self.o: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: G = None
        self.z: F = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: C = None
        self.w: D = None
        self.u: C = None
        self.s: F = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: A = None
        self.r: I = None
        self.x: B = None
        self.w: G = None
        self.o: C = None
        self.txt = txt

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

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

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