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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.w: C = None
        self.x: D = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: B = None
        self.z: C = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.s: D = None
        self.q: F = None
        self.p: A = None
        self.v: I = None
        self.txt = txt

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

e = A("e")
l = B("l")
k = C("k")
g = D("g")
i = E("i")
f = F("f")
m = G("m")
b = H("b")
j = I("j")

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.w: C = None
        self.x: D = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: B = None
        self.z: C = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.s: D = None
        self.q: F = None
        self.p: A = None
        self.v: I = None
        self.txt = txt

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

e = A("e")
l = B("l")
k = C("k")
g = D("g")
i = E("i")
f = F("f")
m = G("m")
b = H("b")
j = I("j")

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