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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: A = None
        self.p: I = None
        self.x: G = None
        self.v: D = None
        self.u: I = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.z: F = None
        self.p: A = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.p: H = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: A = None
        self.p: I = None
        self.x: G = None
        self.v: D = None
        self.u: I = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: I = None
        self.z: F = None
        self.p: A = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: I = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.p: H = None
        self.u: F = None
        self.txt = txt

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

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