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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.s: D = None
        self.o: H = None
        self.r: I = None
        self.z: H = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.y: B = None
        self.x: E = None
        self.u: G = None
        self.v: F = None
        self.r: D = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: D = None
        self.z: F = None
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.s: D = None
        self.o: H = None
        self.r: I = None
        self.z: H = None
        self.y: C = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.y: B = None
        self.x: E = None
        self.u: G = None
        self.v: F = None
        self.r: D = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: D = None
        self.z: F = None
        self.x: F = None
        self.txt = txt

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

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