private static String kopeyki(int k) {
        String result = "копеек";
        if (k > 10 && k < 20) {
            result = "копеек";
        } else {
            int last = k % 10;
            switch (last) {
                case 1:
                    result = "копейка";
                    break;
                case 2:
                case 3:
                case 4:
                    result = "копейки";
                    break;
                default:
                    result = "копеек";
            }
        }
        return result;
    }