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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

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

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

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

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