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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: C = None
        self.s: J = None
        self.w: H = None
        self.z: C = None
        self.v: H = None
        self.u: H = None
        self.t: E = None
        self.x: H = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: E = None
        self.v: A = None
        self.x: B = None
        self.r: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.x: B = None
        self.z: I = None
        self.w: I = None
        self.u: H = None
        self.t: A = None
        self.q: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: E = None
        self.q: C = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: E = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: C = None
        self.s: J = None
        self.w: H = None
        self.z: C = None
        self.v: H = None
        self.u: H = None
        self.t: E = None
        self.x: H = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: E = None
        self.v: A = None
        self.x: B = None
        self.r: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.x: B = None
        self.z: I = None
        self.w: I = None
        self.u: H = None
        self.t: A = None
        self.q: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: E = None
        self.q: C = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: E = None
        self.s: E = None
        self.txt = txt

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

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