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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: C = None
        self.v: J = None
        self.p: H = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: C = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: F = None
        self.y: A = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.y: B = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: C = None
        self.v: J = None
        self.p: H = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: C = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: F = None
        self.y: A = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.y: B = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

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