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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: C = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: C = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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