class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: I = None
        self.x: D = None
        self.p: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: I = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: C = None
        self.p: D = None
        self.y: I = None
        self.u: A = None
        self.r: A = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: H = None
        self.q: B = None
        self.o: A = None
        self.v: F = None
        self.s: I = None
        self.u: D = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: I = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: C = None
        self.p: D = None
        self.y: I = None
        self.u: A = None
        self.r: A = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: H = None
        self.q: B = None
        self.o: A = None
        self.v: F = None
        self.s: I = None
        self.u: D = None
        self.r: H = None
        self.txt = txt

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

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

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

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