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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: G = None
        self.v: E = None
        self.u: I = None
        self.s: H = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.y: D = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: G = None
        self.v: E = None
        self.u: I = None
        self.s: H = None
        self.x: G = None
        self.txt = txt

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

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