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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.v: I = None
        self.u: F = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: I = None
        self.q: I = None
        self.z: G = None
        self.u: E = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

l = A("l")
i = B("i")
b = C("b")
d = D("d")
g = E("g")
c = F("c")
h = G("h")
j = H("j")
n = I("n")
k = B("k")

l.x = i
l.p = d
l.r = n
l.u = c
l.q = j
l.w = h
l.t = h
i.w = g
i.v = b
b.t = n
b.z = c
d.u = j
d.x = c
g.t = h
g.s = c
g.z = c
g.o = n
g.r = b
g.y = b
g.u = b
g.p = l
c.r = n
c.o = j
c.q = g
h.q = j
h.x = d
h.s = d
h.v = n
h.u = c
h.z = g
j.s = n
j.t = n
j.q = n
j.z = h
j.u = g
j.r = g
j.p = g
n.r = k
n.s = l
n.w = c
n.p = c
n.y = h
n.t = j
k.w = g
k.v = b
assert h.u.o.r.z.r.s.p.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: D = None
        self.r: I = None
        self.u: F = None
        self.q: H = None
        self.w: G = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.v: I = None
        self.u: F = None
        self.z: E = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: I = None
        self.q: I = None
        self.z: G = None
        self.u: E = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

l = A("l")
i = B("i")
b = C("b")
d = D("d")
g = E("g")
c = F("c")
h = G("h")
j = H("j")
n = I("n")
k = B("k")

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