class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: B = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: I = None
        self.o: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: F = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.r: B = None
        self.z: D = None
        self.x: I = None
        self.p: J = None
        self.v: B = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.q: D = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: G = None
        self.z: D = None
        self.p: F = None
        self.y: E = None
        self.s: E = None
        self.o: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: I = None
        self.o: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: F = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.r: B = None
        self.z: D = None
        self.x: I = None
        self.p: J = None
        self.v: B = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.q: D = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: G = None
        self.z: D = None
        self.p: F = None
        self.y: E = None
        self.s: E = None
        self.o: J = None
        self.txt = txt

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

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

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