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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: G = None
        self.t: F = None
        self.w: A = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.v: E = None
        self.q: B = None
        self.t: A = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

l.y = e
l.u = e
l.w = m
l.r = c
l.p = c
l.o = j
l.s = k
k.v = c
k.t = l
k.p = e
c.w = h
c.x = l
c.o = i
b.s = i
e.y = i
e.r = i
e.t = m
e.w = l
e.o = l
e.v = k
m.s = c
m.y = l
m.t = l
m.v = e
m.q = k
m.r = k
i.y = l
i.u = h
h.w = i
j.w = i
assert h.w.y.u.r.y.s.p.o.o.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: F = None
        self.r: C = None
        self.u: E = None
        self.o: H = None
        self.p: C = None
        self.s: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: G = None
        self.t: F = None
        self.w: A = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.v: E = None
        self.q: B = None
        self.t: A = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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