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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: E = None
        self.s: J = None
        self.q: C = None
        self.u: F = None
        self.x: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: I = None
        self.p: B = None
        self.o: D = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: F = None
        self.w: H = None
        self.p: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: D = None
        self.x: A = None
        self.q: D = None
        self.p: F = None
        self.v: C = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: I = None
        self.q: D = None
        self.w: B = None
        self.r: A = None
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: E = None
        self.s: J = None
        self.q: C = None
        self.u: F = None
        self.x: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: I = None
        self.p: B = None
        self.o: D = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: F = None
        self.w: H = None
        self.p: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: D = None
        self.x: A = None
        self.q: D = None
        self.p: F = None
        self.v: C = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: I = None
        self.q: D = None
        self.w: B = None
        self.r: A = None
        self.t: D = None
        self.txt = txt

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

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