Var a,b,c,d:longint; begin readln(a); {euro} readln(b); {usd} readln(c); {rur} writeln('USD', c div b); writeln('EUR ',c div a); end.