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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: C = None
        self.v: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: D = None
        self.o: E = None
        self.r: D = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: C = None
        self.v: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: D = None
        self.o: E = None
        self.r: D = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.txt = txt

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

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

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

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