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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.s: F = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.y: A = None
        self.z: C = None
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.s: F = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.y: A = None
        self.z: C = None
        self.w: G = None
        self.txt = txt

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

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