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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: F = None
        self.t: H = None
        self.s: F = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: F = None
        self.t: H = None
        self.s: F = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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