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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: I = None
        self.t: C = None
        self.u: E = None
        self.w: C = None
        self.y: A = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: I = None
        self.v: G = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: E = None
        self.x: E = None
        self.z: J = None
        self.w: G = None
        self.u: I = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.v: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: A = None
        self.w: D = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: D = None
        self.w: B = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: I = None
        self.t: C = None
        self.u: E = None
        self.w: C = None
        self.y: A = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: I = None
        self.v: G = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: E = None
        self.x: E = None
        self.z: J = None
        self.w: G = None
        self.u: I = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: I = None
        self.v: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: A = None
        self.w: D = None
        self.s: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: D = None
        self.w: B = None
        self.z: I = None
        self.s: B = None
        self.txt = txt

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

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