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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.y: E = None
        self.w: D = None
        self.t: E = None
        self.s: F = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.y: E = None
        self.w: D = None
        self.t: E = None
        self.s: F = None
        self.r: E = None
        self.txt = txt

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

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