class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: F = None
        self.u: E = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: F = None
        self.x: D = None
        self.u: D = None
        self.p: F = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.z: F = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.o: C = None
        self.x: F = None
        self.p: F = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: F = None
        self.x: D = None
        self.u: D = None
        self.p: F = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.z: F = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.o: C = None
        self.x: F = None
        self.p: F = None
        self.y: G = None
        self.txt = txt

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

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

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