class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: C = None
        self.z: J = None
        self.s: B = None
        self.w: E = None
        self.o: H = None
        self.q: H = None
        self.t: E = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: F = None
        self.x: E = None
        self.y: E = None
        self.z: D = None
        self.o: G = None
        self.t: D = None
        self.v: D = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: F = None
        self.x: E = None
        self.y: E = None
        self.z: D = None
        self.o: G = None
        self.t: D = None
        self.v: D = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

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