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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: J = None
        self.u: H = None
        self.w: H = None
        self.v: D = None
        self.o: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: J = None
        self.x: F = None
        self.y: J = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: J = None
        self.u: H = None
        self.w: H = None
        self.v: D = None
        self.o: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: J = None
        self.x: F = None
        self.y: J = None
        self.r: F = None
        self.txt = txt

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

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

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

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