class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: G = None
        self.o: B = None
        self.u: B = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: B = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: B = None
        self.p: A = None
        self.txt = txt

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

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

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

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