class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: I = None
        self.v: C = None
        self.u: B = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.p: A = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: A = None
        self.x: D = None
        self.q: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: H = None
        self.s: C = None
        self.q: H = None
        self.r: E = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.p: A = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: A = None
        self.x: D = None
        self.q: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: H = None
        self.s: C = None
        self.q: H = None
        self.r: E = None
        self.o: B = None
        self.txt = txt

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

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