class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: B = None
        self.s: E = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.s: I = None
        self.p: B = None
        self.w: F = None
        self.z: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: C = None
        self.s: I = None
        self.p: B = None
        self.w: F = None
        self.z: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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