class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: I = None
        self.s: F = None
        self.v: B = None
        self.x: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: F = None
        self.txt = txt

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

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

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