class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: H = None
        self.w: H = None
        self.x: E = None
        self.v: E = None
        self.z: E = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: F = None
        self.u: A = None
        self.x: A = None
        self.t: B = None
        self.p: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

m = A("m")
e = B("e")
d = C("d")
i = D("i")
k = E("k")
n = F("n")
c = G("c")
b = H("b")
l = I("l")

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: F = None
        self.u: A = None
        self.x: A = None
        self.t: B = None
        self.p: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

m = A("m")
e = B("e")
d = C("d")
i = D("i")
k = E("k")
n = F("n")
c = G("c")
b = H("b")
l = I("l")

m.s = b
m.o = b
m.w = b
m.x = k
m.v = k
m.z = k
m.t = e
e.p = l
e.q = l
e.t = l
e.r = k
e.u = i
d.v = i
d.r = n
d.u = m
d.x = m
d.t = e
d.p = e
d.z = c
i.x = b
i.v = k
i.z = k
i.w = n
i.r = n
i.u = m
i.t = d
k.v = d
k.p = d
k.u = i
k.y = b
k.z = l
k.s = l
n.w = d
n.x = d
n.u = m
c.r = i
b.w = k
b.s = i
b.u = e
b.v = l
b.t = n
b.z = c
l.z = b
l.u = e
l.p = d
l.x = k
l.o = n
l.s = i
assert k.u.z.y.v.u.p.p.txt == "d"