class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: E = None
        self.p: B = None
        self.t: E = None
        self.z: F = None
        self.v: F = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: F = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: B = None
        self.q: A = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: E = None
        self.s: A = None
        self.y: D = None
        self.x: E = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: F = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: B = None
        self.q: A = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: E = None
        self.s: A = None
        self.y: D = None
        self.x: E = None
        self.w: B = None
        self.txt = txt

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

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

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

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