class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: E = None
        self.p: B = None
        self.r: B = None
        self.z: B = None
        self.o: H = None
        self.q: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: C = None
        self.o: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.v: H = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: C = None
        self.o: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: B = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.v: H = None
        self.z: A = None
        self.txt = txt

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

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