class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: C = None
        self.p: A = None
        self.z: I = None
        self.s: A = None
        self.q: I = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: D = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.y: B = None
        self.r: E = None
        self.z: I = None
        self.x: I = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: C = None
        self.p: A = None
        self.z: I = None
        self.s: A = None
        self.q: I = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: D = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.y: B = None
        self.r: E = None
        self.z: I = None
        self.x: I = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

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

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