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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: D = None
        self.u: F = None
        self.s: B = None
        self.w: F = None
        self.r: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.q: D = None
        self.z: B = None
        self.o: G = None
        self.u: B = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

n = A("n")
m = B("m")
e = C("e")
g = D("g")
k = E("k")
i = F("i")
c = G("c")
j = A("j")
b = B("b")
l = B("l")

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: D = None
        self.u: F = None
        self.s: B = None
        self.w: F = None
        self.r: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.q: D = None
        self.z: B = None
        self.o: G = None
        self.u: B = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

n = A("n")
m = B("m")
e = C("e")
g = D("g")
k = E("k")
i = F("i")
c = G("c")
j = A("j")
b = B("b")
l = B("l")

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