class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: B = None
        self.s: D = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.z: F = None
        self.v: H = None
        self.t: J = None
        self.x: A = None
        self.s: E = None
        self.w: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: B = None
        self.r: B = None
        self.u: B = None
        self.x: C = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.v: A = None
        self.r: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: B = None
        self.s: D = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.z: F = None
        self.v: H = None
        self.t: J = None
        self.x: A = None
        self.s: E = None
        self.w: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: B = None
        self.r: B = None
        self.u: B = None
        self.x: C = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.v: A = None
        self.r: I = None
        self.txt = txt

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

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