class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: G = None
        self.o: E = None
        self.u: D = None
        self.z: C = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: A = None
        self.x: F = None
        self.z: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: A = None
        self.p: F = None
        self.w: F = None
        self.z: A = None
        self.o: F = None
        self.t: D = None
        self.v: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: A = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: A = None
        self.x: F = None
        self.z: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: A = None
        self.p: F = None
        self.w: F = None
        self.z: A = None
        self.o: F = None
        self.t: D = None
        self.v: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: A = None
        self.z: B = None
        self.txt = txt

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

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