class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.v: F = None
        self.w: H = None
        self.x: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.v: F = None
        self.w: H = None
        self.x: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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