class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: C = None
        self.o: F = None
        self.s: G = None
        self.p: B = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: E = None
        self.o: A = None
        self.p: G = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: D = None
        self.r: D = None
        self.x: E = None
        self.s: F = None
        self.txt = txt

k = A("k")
a = B("a")
g = C("g")
i = D("i")
j = E("j")
d = F("d")
c = G("c")
m = D("m")

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: E = None
        self.o: A = None
        self.p: G = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: D = None
        self.r: D = None
        self.x: E = None
        self.s: F = None
        self.txt = txt

k = A("k")
a = B("a")
g = C("g")
i = D("i")
j = E("j")
d = F("d")
c = G("c")
m = D("m")

k.x = g
k.v = g
k.o = d
k.s = c
k.p = a
k.w = j
a.p = i
g.y = i
g.z = j
g.o = k
g.p = c
g.u = a
g.v = m
i.s = j
i.z = j
i.u = c
i.o = k
j.u = d
j.v = i
d.x = j
d.w = j
d.u = k
d.r = k
d.t = a
d.v = g
c.t = a
c.u = m
c.r = i
c.x = j
c.s = d
m.s = j
m.z = j
m.u = c
m.o = k
assert c.x.v.u.u.o.p.p.s.txt == "j"