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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: G = None
        self.u: B = None
        self.v: B = None
        self.o: F = None
        self.w: H = None
        self.q: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.z: A = None
        self.q: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: G = None
        self.u: B = None
        self.v: B = None
        self.o: F = None
        self.w: H = None
        self.q: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.z: A = None
        self.q: G = None
        self.txt = txt

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

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