class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: D = None
        self.u: B = None
        self.x: G = None
        self.w: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.r: A = None
        self.o: B = None
        self.p: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.r: A = None
        self.o: B = None
        self.p: E = None
        self.u: C = None
        self.txt = txt

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

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

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