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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: E = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: E = None
        self.p: C = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: A = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: E = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: E = None
        self.p: C = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: A = None
        self.y: F = None
        self.txt = txt

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

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